[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] CVS: smdoc sqmcreate.php,NONE,1.1
From:       Erin Schnabel <ebullient () users ! sourceforge ! net>
Date:       2003-12-31 9:02:57
Message-ID: E1AbcFl-0002m6-00 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/squirrelmail/smdoc
In directory sc8-pr-cvs1:/tmp/cvs-serv10297

Added Files:
	sqmcreate.php 
Log Message:
Creating text_plain and Textile docs.
Textile is HTML shorthand that can have regular HTML mixed in. I like it.
Saves work, and is natural.



--- NEW FILE ---
<?php
/*
 * Copyright (c) 1999-2003 The SquirrelMail Project Team
 * Licensed under the GNU GPL. For full terms see the file COPYING.
 * 
 * This file is an addition to the
 * Framework for Object Orientated Web Development (Foowd).
 */


/**
 * Alternate entry point providing links for document creation
 *
 * $Id: sqmcreate.php,v 1.1 2003/12/31 09:02:54 ebullient Exp $
 *
 * Values set in template:
 *  + classlist     - below
 *  + body_template - specific filename (will be relative to TEMPLATE PATH)
 *  + method        - empty string
 *  + title         - 'Create New Resource'
 *
 * Sample contents of $t['classlist']:
 * <pre>
 * array (
 *   classname => <description>
 *        )
 * )
 * </pre>
 * 
 * @package smdoc
 * @subpackage extern
 */

/** 
 * Initial configuration, start session
 * @see config.default.php
 */
require('config.php');

/* 
 * Initialize smdoc/FOOWD environment
 */
$foowd = new smdoc($foowd_parameters);

$obj = NULL;
$class_list = array();
$classes = getFoowdClassNames();

foreach ( $classes as $classid => $className )
{
  if ( $foowd->hasPermission($className, 'create', 'class', $obj) &&
       strpos($className, 'user') === false )
  {
    $class_list[$className] = getClassDescription($classid);
  }
}

$foowd->template->assign('title',  _("Create New Resource"));
$foowd->template->assign('method', '');
$foowd->template->assign_by_ref('classlist', $class_list);
$foowd->template->assign('body_template', 'smdoc_external.create.tpl');

$foowd->template->display();

/*
 * destroy Foowd - triggers cleanup of database object and 
 * display of debug information.
 */
$foowd->__destruct();




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic