Source for file list.phpclass
Documentation is available at list.phpclass
* Class file list.phpclass
* @project Open CSP-Management
* @author Peter Krebs <p.krebs@lvus.at>
* @copyright (c) 2002-2003 by Peter Krebs and Landesverlag Unternehmensservice
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
require_once $GLOBALS['PROJECT']['CONFIGPATH'].
"cms.conf";
require_once $GLOBALS['CMS']['PHPINCPATH'].
"template/page/page.phpclass";
* @project Open CSP-Management
* @author Peter Krebs <p.krebs@lvus.at>
* @copyright (c) 2002-2003 by Peter Krebs and Landesverlag Unternehmensservice
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @staticvar string $type OBJECT TYPE
* returns the new/edit form for the template
* @param int $mode show mode
* @parma string $frmName form name to load instead of T_CMS_PAGE_TEMPLATE
if ($form=
&parent::dbGetForm($mode,$frmName)) {
$fld->toolTip=
"Platzhalter: \n\$^key\$ = GET \n\$~key\$ = SESSION \n\$§key\$ = POST \n\$°key\$ = SERVER";
$fld->nullErrMsg=
"Sie müssen eine SQL-Statement eingeben";
$fld=
&$form->addNoDbField("LISTSTART","Listenstart","_blobHTMLCODE","PT");
$fld=
&$form->addNoDbField("LISTSEND","Listenende","_blobHTMLCODE","PT");
$fld=
&$form->addNoDbField("LISTITEM","Listeneintrag","_blobHTMLCODE","PT");
$fld->toolTip=
"Platzhalter für DB-COLUMNS: §*COLUMN§";
$fld=
&$form->addNoDbField("LISTNOITEM","keine Datensätze","_blobHTMLCODE","PT");
$fld->toolTip=
"Wird angezeigt, wenn kein Datensatz gefunden wurde";
* sets data from $_POST[key]array (dbms) to the objects db values
* @param string $arrName name of the post array
* @param bool $debug show debug info
function setPOSTVAL($arrName=
"DBVAL",$debug=
FALSE) {
if ($debug) echo
"<hr><p><b>CMS_PAGE_TEMPLATE::setPOSTVAL($arrName,$debug</b> (".
get_class($this).
")</p>";
parent::setPOSTVAL($arrName,$debug);
if (!$this->pt) $this->pt=
array();
$this->pt['QUERY']=
$_POST[$arrName]['QUERY'];
$this->pt['LISTSTART']=
$_POST[$arrName]['LISTSTART'];
$this->pt['LISTEND']=
$_POST[$arrName]['LISTEND'];
$this->pt['LISTITEM']=
$_POST[$arrName]['LISTITEM'];
$this->pt['LISTNOITEM']=
$_POST[$arrName]['LISTNOITEM'];
* sets post array with form checks
* @param DBMS_FORM $frmObj a formObj as ref
* @param array $dbVal array with data
if ($debug) echo
"<hr><p><b>CMS_PAGE_TEMPLATE::setFORMPOST($frmObj,$dbval,$debug)</b> (".
get_class($this).
")</p>";
if (parent::setFORMPOST($frmObj,$dbval,$debug)) {
if (!$this->pt) $this->pt=
array();
$this->pt['QUERY']=
$_POST[$arrName]['QUERY'];
$this->pt['LISTSTART']=
$_POST[$arrName]['LISTSTART'];
$this->pt['LISTEND']=
$_POST[$arrName]['LISTEND'];
$this->pt['LISTITEM']=
$_POST[$arrName]['LISTITEM'];
$this->pt['LISTNOITEM']=
$_POST[$arrName]['LISTNOITEM'];
Documentation generated on Thu, 08 Jan 2009 17:44:31 +0100 by phpDocumentor 1.4.0a2