Return to Snippet

Revision: 61399
at December 11, 2012 06:49 by steho


Updated Code
<we:comment type="php">
	The following listview counts the number of "reglements" entries and puts them by we:setVar into to global variable "totalP".
	This variable is then written by we:var as a green button in the navigation.
  </we:comment>

  <we:condition name="cond">
	<we:setVar to="global" nameto="clientID" from="session" namefrom="cid" />
	<we:conditionAdd field="pClient" var="clientID" compare="=" />
  </we:condition>
  <we:listview type="object" name="paiements" classid="1" condition="\$cond" order="we_id">
	<we:ifFound>
	  <?php $totalP = $GLOBALS['lv']->anz_all; ?>
	</we:ifFound>
  </we:listview>
<we:setVar to="global" nameto="totalP" from="global" namefrom="totalP" />

Revision: 61398
at December 11, 2012 06:39 by steho


Updated Code
<we:comment type="php">
	The following listview counts the number of "reglements" entries and puts them by we:setVar into to global variable "totalP".
	This variable is then written by we:var as a green button in the navigation.
  </we:comment>

  <we:condition name="cond">
	<we:setVar to="global" nameto="clientID" from="session" namefrom="cid" />
	<we:conditionAdd field="pClient" var="clientID" compare="=" />
  </we:condition>
  <we:listview type="object" name="paiements" classid="1" condition="\$cond" order="we_id">
	<we:ifFound>
	  <?php $totalP = $GLOBALS['lv']->anz_all; ?>
	</we:ifFound>
  </we:listview>
<we:setVar to="global" nameto="totalP" from="global" namefrom="totalP" />

<!-- OTHER EXAMPLE
The code : <?php $test = $GLOBALS['lv']->object->DB_WE->Record['Notes']; ?> would put the content of array field "Notes" into $test
-->

Revision: 61397
at December 10, 2012 04:01 by steho


Updated Code
<we:comment type="php">
	The following listview counts the number of "reglements" entries and puts them by we:setVar into to global variable "totalP".
	This variable is then written by we:var as a green button in the navigation.
  </we:comment>

  <we:condition name="cond">
	<we:setVar to="global" nameto="clientID" from="session" namefrom="cid" />
	<we:conditionAdd field="pClient" var="clientID" compare="=" />
  </we:condition>
  <we:listview type="object" name="paiements" classid="1" condition="\$cond" order="we_id">
	<we:ifFound>
	  <?php $totalP = $GLOBALS['lv']->anz_all; ?>
	</we:ifFound>
  </we:listview>
<we:setVar to="global" nameto="totalP" from="global" namefrom="totalP" />

<!-- 
The code : <?php p_r($GLOBALS['lv']->DB_WE->Database); ?> would read the content of the Array, i.e. 
 [DB_WE] => DB_WE Object
        (
            [Database] => ispandtesite
        )
-->

Revision: 61396
at December 10, 2012 01:22 by steho


Initial Code
<we:comment type="php">
	The following listview counts the number of "reglements" entries and puts them by we:setVar into to global variable "totalP".
	This variable is then written by we:var as a green button in the navigation.
  </we:comment>

  <we:condition name="cond">
	<we:setVar to="global" nameto="clientID" from="session" namefrom="cid" />
	<we:conditionAdd field="pClient" var="clientID" compare="=" />
  </we:condition>
  <we:listview type="object" name="paiements" classid="1" condition="\$cond" order="we_id">
	<we:ifFound>
	  <?php $totalP = $GLOBALS['lv']->anz_all; ?>
	</we:ifFound>
  </we:listview>
<we:setVar to="global" nameto="totalP" from="global" namefrom="totalP" />

Initial URL


Initial Description
Takes the content of a listview field an puts it into a global variable.

Initial Title
Reads the content of a field in $GLOBALS[\'lv\']

Initial Tags


Initial Language
PHP