Browse Source

personInUp in den scripten nach personForm umbenannt

master
Georg Hopp 18 years ago
parent
commit
6009d270bb
  1. 2
      js/personAdmin/personInUp.js
  2. 6
      libs/c_personAdmin.php
  3. 4
      templates/personAdmin/personAdmin.tpl.php
  4. 36
      templates/personAdmin/personInUp.tpl.php

2
js/personAdmin/personInUp.js

@ -15,7 +15,7 @@
* de_activate / de/activate the formular fields for input * de_activate / de/activate the formular fields for input
* updateForm / calls de_activate and controls the checkboxes * updateForm / calls de_activate and controls the checkboxes
*/ */
function personInUp (
function personForm (
upId, inId, submitId, person, newPerson, arrRight, arrDown) upId, inId, submitId, person, newPerson, arrRight, arrDown)
{ {
this.updBox = upId; this.updBox = upId;

6
libs/c_personAdmin.php

@ -97,15 +97,15 @@ class c_personAdmin extends c_picToolSavant
return $this->fetch ('personAdmin/personSearch1.tpl.php'); return $this->fetch ('personAdmin/personSearch1.tpl.php');
} }
function personInUp ()
function personForm ()
{ {
return $this->fetch ('personAdmin/personInUp.tpl.php');
return $this->fetch ('personAdmin/personForm.tpl.php');
} }
function show () function show ()
{ {
$this->assign ('personSearch1', $this->personSearch1 ()); $this->assign ('personSearch1', $this->personSearch1 ());
$this->assign ('personInUp', $this->personInUp ());
$this->assign ('personForm', $this->personForm ());
$this->display ('personAdmin/personAdmin.tpl.php'); $this->display ('personAdmin/personAdmin.tpl.php');
} }

4
templates/personAdmin/personAdmin.tpl.php

@ -15,7 +15,7 @@
<script src="<?=JSURL?>transPngBg.js" type="text/javascript"></script> <script src="<?=JSURL?>transPngBg.js" type="text/javascript"></script>
<script src="<?=JSURL?>personAdmin/personSearch1.js" <script src="<?=JSURL?>personAdmin/personSearch1.js"
type="text/javascript"></script> type="text/javascript"></script>
<script src="<?=JSURL?>personAdmin/personInUp.js"
<script src="<?=JSURL?>personAdmin/personForm.js"
type="text/javascript"></script> type="text/javascript"></script>
<script src="<?=JSURL?>personAdmin/person.js" <script src="<?=JSURL?>personAdmin/person.js"
type="text/javascript"></script> type="text/javascript"></script>
@ -43,7 +43,7 @@
</noscript> </noscript>
<?=$this->personSearch1?> <?=$this->personSearch1?>
<div style="height: 5px; line-height: 5px">&nbsp;</div> <div style="height: 5px; line-height: 5px">&nbsp;</div>
<?=$this->personInUp?>
<?=$this->personForm?>
</div> </div>
<br /> <br />
<pre><? var_dump ($_REQUEST) ?></pre> <pre><? var_dump ($_REQUEST) ?></pre>

36
templates/personAdmin/personInUp.tpl.php

@ -3,10 +3,10 @@
submit_str = '<?=_('submit')?>'; submit_str = '<?=_('submit')?>';
delete_str = '<?=_('delete')?>'; delete_str = '<?=_('delete')?>';
pInUp = new personInUp (
pForm = new personForm (
'update', 'insert', 'send', person, newPerson, arrRight, arrDown); 'update', 'insert', 'send', person, newPerson, arrRight, arrDown);
function personInUpInit ()
function personFormInit ()
{ {
var tCam = document.getElementById ('title_photographer'); var tCam = document.getElementById ('title_photographer');
var tCamImg = tCam.getElementsByTagName ('img')[0]; var tCamImg = tCam.getElementsByTagName ('img')[0];
@ -26,19 +26,19 @@
<td> <td>
<input type="checkbox" id="update" name="action" <input type="checkbox" id="update" name="action"
value="update" disabled="true" value="update" disabled="true"
onClick="pInUp.updateForm ()" />
onClick="pForm.updateForm ()" />
</td> </td>
<td><?=_('update')?></td> <td><?=_('update')?></td>
<td>&nbsp;&nbsp;</td> <td>&nbsp;&nbsp;</td>
<td> <td>
<input type="checkbox" id="insert" name="action" <input type="checkbox" id="insert" name="action"
value="insert" value="insert"
onClick="pInUp.updateForm ()" />
onClick="pForm.updateForm ()" />
</td> </td>
<td><?=_('insert')?></td> <td><?=_('insert')?></td>
<td align="right" width="100%"> <td align="right" width="100%">
<input type="button" id="send" value="<?=_('submit')?>" <input type="button" id="send" value="<?=_('submit')?>"
onClick="return pInUp.sendForm ('pForm')" disabled="true" />
onClick="return pForm.sendForm ('pForm')" disabled="true" />
</td> </td>
</tr></table> </tr></table>
</div> </div>
@ -63,31 +63,31 @@
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="firstname" name="firstname" value="" disabled="true" id="firstname" name="firstname" value="" disabled="true"
onChange="pInUp.setFirstname (this.value)" />
onChange="pForm.setFirstname (this.value)" />
<?=_('firstname')?> <?=_('firstname')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="surname" name="surname" value="" disabled="true" id="surname" name="surname" value="" disabled="true"
onChange="pInUp.setSurname (this.value)" />
onChange="pForm.setSurname (this.value)" />
<?=_('surname')?> <?=_('surname')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="company" name="company" value="" disabled="true" id="company" name="company" value="" disabled="true"
onChange="pInUp.setCompany (this.value)" />
onChange="pForm.setCompany (this.value)" />
<?=_('company')?> <?=_('company')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="email" name="email" value="" disabled="true" id="email" name="email" value="" disabled="true"
onChange="pInUp.setEmail (this.value)" />
onChange="pForm.setEmail (this.value)" />
<?=_('email')?> <?=_('email')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="url" name="url" value="" disabled="true" id="url" name="url" value="" disabled="true"
onChange="pInUp.setUrl (this.value)" />
onChange="pForm.setUrl (this.value)" />
<?=_('url')?> <?=_('url')?>
</div> </div>
</div> </div>
@ -105,7 +105,7 @@
margin-right: 3px; margin-right: 3px;
float: right; float: right;
cursor: pointer" cursor: pointer"
onClick="pInUp.showHideBlock ('title_photographer')" />
onClick="pForm.showHideBlock ('title_photographer')" />
</td></tr> </td></tr>
</table> </table>
</div> </div>
@ -117,7 +117,7 @@
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="cameraId" name="cameraId" value="-1" disabled="true" id="cameraId" name="cameraId" value="-1" disabled="true"
onChange="pInUp.setCameraId (this.value)" />
onChange="pForm.setCameraId (this.value)" />
<?=_('cameraId')?> <?=_('cameraId')?>
</div> </div>
</div> </div>
@ -135,7 +135,7 @@
float: right; float: right;
margin-right: 3px; margin-right: 3px;
cursor: pointer" cursor: pointer"
onClick="pInUp.showHideBlock ('title_owner')" />
onClick="pForm.showHideBlock ('title_owner')" />
</td></tr> </td></tr>
</table> </table>
</div> </div>
@ -146,25 +146,25 @@
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="wmWidth" name="wmWidth" value="" disabled="true" id="wmWidth" name="wmWidth" value="" disabled="true"
onChange="pInUp.setWmWidth (this.value)" />
onChange="pForm.setWmWidth (this.value)" />
<?=_('watermark width')?> <?=_('watermark width')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="wmHeight" name="wmHeight" value="" disabled="true" id="wmHeight" name="wmHeight" value="" disabled="true"
onChange="pInUp.setWmHeight (this.value)" />
onChange="pForm.setWmHeight (this.value)" />
<?=_('watermark height')?> <?=_('watermark height')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="wmXPos" name="wmXPos" value="" disabled="true" id="wmXPos" name="wmXPos" value="" disabled="true"
onChange="pInUp.setWmXPos (this.value)" />
onChange="pForm.setWmXPos (this.value)" />
<?=_('watermark xPos')?> <?=_('watermark xPos')?>
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="wmYPos" name="wmYPos" value="" disabled="true" id="wmYPos" name="wmYPos" value="" disabled="true"
onChange="pInUp.setWmYPos (this.value)" />
onChange="pForm.setWmYPos (this.value)" />
<?=_('watermark yPos')?> <?=_('watermark yPos')?>
</div> </div>
</div> </div>
@ -178,6 +178,6 @@
<script language="javascript"> <script language="javascript">
//<![CDATA[ //<![CDATA[
personInUpInit ();
personFormInit ();
//]]> //]]>
</script> </script>
Loading…
Cancel
Save