diff --git a/js/personAdmin/personInUp.js b/js/personAdmin/personInUp.js index 03b19d2..0e3bad2 100644 --- a/js/personAdmin/personInUp.js +++ b/js/personAdmin/personInUp.js @@ -15,7 +15,7 @@ * de_activate / de/activate the formular fields for input * updateForm / calls de_activate and controls the checkboxes */ -function personInUp ( +function personForm ( upId, inId, submitId, person, newPerson, arrRight, arrDown) { this.updBox = upId; diff --git a/libs/c_personAdmin.php b/libs/c_personAdmin.php index b94f96a..23c4271 100644 --- a/libs/c_personAdmin.php +++ b/libs/c_personAdmin.php @@ -97,15 +97,15 @@ class c_personAdmin extends c_picToolSavant 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 () { $this->assign ('personSearch1', $this->personSearch1 ()); - $this->assign ('personInUp', $this->personInUp ()); + $this->assign ('personForm', $this->personForm ()); $this->display ('personAdmin/personAdmin.tpl.php'); } diff --git a/templates/personAdmin/personAdmin.tpl.php b/templates/personAdmin/personAdmin.tpl.php index 9991537..8a90430 100644 --- a/templates/personAdmin/personAdmin.tpl.php +++ b/templates/personAdmin/personAdmin.tpl.php @@ -15,7 +15,7 @@ - @@ -43,7 +43,7 @@ personSearch1?>
 
- personInUp?> + personForm?>
diff --git a/templates/personAdmin/personInUp.tpl.php b/templates/personAdmin/personInUp.tpl.php index b72c941..5e4c123 100644 --- a/templates/personAdmin/personInUp.tpl.php +++ b/templates/personAdmin/personInUp.tpl.php @@ -3,10 +3,10 @@ submit_str = ''; delete_str = ''; - pInUp = new personInUp ( + pForm = new personForm ( 'update', 'insert', 'send', person, newPerson, arrRight, arrDown); - function personInUpInit () + function personFormInit () { var tCam = document.getElementById ('title_photographer'); var tCamImg = tCam.getElementsByTagName ('img')[0]; @@ -26,19 +26,19 @@ + onClick="pForm.updateForm ()" />    + onClick="pForm.updateForm ()" /> + onClick="return pForm.sendForm ('pForm')" disabled="true" /> @@ -63,31 +63,31 @@
+ onChange="pForm.setFirstname (this.value)" />
+ onChange="pForm.setSurname (this.value)" />
+ onChange="pForm.setCompany (this.value)" />
+ onChange="pForm.setEmail (this.value)" />
+ onChange="pForm.setUrl (this.value)" />
@@ -105,7 +105,7 @@ margin-right: 3px; float: right; cursor: pointer" - onClick="pInUp.showHideBlock ('title_photographer')" /> + onClick="pForm.showHideBlock ('title_photographer')" /> @@ -117,7 +117,7 @@
+ onChange="pForm.setCameraId (this.value)" />
@@ -135,7 +135,7 @@ float: right; margin-right: 3px; cursor: pointer" - onClick="pInUp.showHideBlock ('title_owner')" /> + onClick="pForm.showHideBlock ('title_owner')" /> @@ -146,25 +146,25 @@
+ onChange="pForm.setWmWidth (this.value)" />
+ onChange="pForm.setWmHeight (this.value)" />
+ onChange="pForm.setWmXPos (this.value)" />
+ onChange="pForm.setWmYPos (this.value)" />
@@ -178,6 +178,6 @@