Source for file CMS_LIST_PAGE.phpclass
Documentation is available at CMS_LIST_PAGE.phpclass
* Class file CMS_LIST_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
require_once $GLOBALS['DEFAULTCONFPATH'].
"cms.conf.phpinc";
require_once $GLOBALS['CMS']['PHPINCPATH'].
"page/CMS_PAGE_V2.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
* @var string $myClassName name of the class
* @var string $TMPL_LSTSTART
* @var string $TMPL_LSTEND
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* _______________________ DATA FUNCTIONS _______________________ */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
* returns a array of variables used by the page object
* [FLDCLASS] name of DBMS_FIELD* class
* [CLASSVALS] array of values of [FLDCLASS]
require_once $GLOBALS['OCSP']['DBMSFLD_PATH'].
"DBMS_FIELD_HEADLINE.phpclass";
$retArr['_MYLISTHAEDLINE']=
array(
"FLDCLASS" =>
"DBMS_FIELD_HEADLINE",
"label" =>
"<b>Liste</b>"
require_once $GLOBALS['OCSP']['DBMSFLD_PATH'].
"DBMS_FIELD_SQLSTATEMENT.phpclass";
$retArr['MYQUERY']=
array(
"FLDCLASS" =>
"DBMS_FIELD_SQLSTATEMENT",
require_once $GLOBALS['OCSP']['DBMSFLD_PATH'].
"DBMS_FIELD_HTMLSOURCE.phpclass";
$retArr['TMPL_LSTSTART']=
array(
"FLDCLASS" =>
"DBMS_FIELD_HTMLSOURCE",
"label" =>
"Liste Start",
$retArr['TMPL_LST']=
array(
"FLDCLASS" =>
"DBMS_FIELD_HTMLSOURCE",
"label" =>
"Listen Element",
"myHelpUrl" =>
$GLOBALS['PROJECT']['SYSTEMURL'].
"/help/templatevars.html"
$retArr['TMPL_LSTEND']=
array(
"FLDCLASS" =>
"DBMS_FIELD_HTMLSOURCE",
"label" =>
"Listen Ende",
require_once $GLOBALS['OCSP']['DBMSFLD_PATH'].
"DBMS_FIELD_INT.phpclass";
$retArr['LST_LIMIT']=
array(
"FLDCLASS" =>
"DBMS_FIELD_INT",
"label" =>
"Limit (Datensätze/Seite)",
echo
"<p><b>CMS_LIST_PAGE::loadFrmObj(...)</b> (".
get_class($this).
")</p>";
echo
"<blockquote><p>ID: ".
$this->MYFORM.
"</p>";
echo
"DBMS_FORMS:<pre>".
pcf_print_r($GLOBALS['DBMS_FORMS'][$this->MYFORM],TRUE,3).
"</pre>";
echo
"ERROR FORM ID ".
$this->MYFORM.
" NOT FOUND";
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* _______________________ HEADER ________________________________ */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
if ($debug) echo
"<p><b>CMS_LIST_PAGE::getJavaHeaderTag(...)</b> (".
get_class($this).
")</p><blockquote>";
$tag=
parent::getJavaHeaderTag($debug);
if (!strstr($tag,$GLOBALS['PROJECT']['JAVASCRIPTURL'].
"window.js")) {
$tag .=
"\t<script language=\"JavaScript\" src=\"".
$GLOBALS['PROJECT']['JAVASCRIPTURL'].
"window.js\" type=\"text/javascript\"></script>\n";
if (!strstr($tag,$GLOBALS['PROJECT']['JAVASCRIPTURL'].
"forms.js")) {
$tag .=
"\t<script language=\"JavaScript\" src=\"".
$GLOBALS['PROJECT']['JAVASCRIPTURL'].
"forms.js\" type=\"text/javascript\"></script>\n";
if ($debug) echo
"</blockquote>";
/* _______________________ BODY _______________________________ */
* returns the html-code for the form
echo
"<p><b>CMS_LIST_PAGE::getList(...)</b> (".
get_class($this).
")</p>";
foreach($ovArr as $key =>
$valArr) {
// echo "PAGE OBJECT:<pre>".pcf_print_r($this,TRUE,3)."</pre>";
if ($debug) echo
"</blockqote>";
require_once $GLOBALS['PROJECT']['PHPINCPATH'].
"common/pcf_templates.phpinc";
if ($debug) echo
"<p>Query: $query</p><blockquote>";
if ($cursor=
$GLOBALS['USRDB']->query($query)) {
while($row=
$cursor->fetchArrayFld()) {
if ($debug) echo
"<pre>".
print_r($row,TRUE).
"</pre>";
} else { /* <pk-04-12-20 >*/
echo
"<!-- ERROR IN QUERY: $query -->\n";
if ($debug) echo
"</blockquote>";
* echos the content of the page
* @param int $chaShowMode
function content($chaShowMode=
0,$debug=
FALSE) {
Documentation generated on Thu, 08 Jan 2009 17:39:01 +0100 by phpDocumentor 1.4.0a2