Commit 6009d270bb8b97cdc56888026491fa6039e6d560

Authored by Georg Hopp
1 parent 728337cf

personInUp in den scripten nach personForm umbenannt

... ... @@ -15,7 +15,7 @@
15 15 * de_activate / de/activate the formular fields for input
16 16 * updateForm / calls de_activate and controls the checkboxes
17 17 */
18   -function personInUp (
  18 +function personForm (
19 19 upId, inId, submitId, person, newPerson, arrRight, arrDown)
20 20 {
21 21 this.updBox = upId;
... ...
... ... @@ -97,15 +97,15 @@ class c_personAdmin extends c_picToolSavant
97 97 return $this->fetch ('personAdmin/personSearch1.tpl.php');
98 98 }
99 99
100   - function personInUp ()
  100 + function personForm ()
101 101 {
102   - return $this->fetch ('personAdmin/personInUp.tpl.php');
  102 + return $this->fetch ('personAdmin/personForm.tpl.php');
103 103 }
104 104
105 105 function show ()
106 106 {
107 107 $this->assign ('personSearch1', $this->personSearch1 ());
108   - $this->assign ('personInUp', $this->personInUp ());
  108 + $this->assign ('personForm', $this->personForm ());
109 109
110 110 $this->display ('personAdmin/personAdmin.tpl.php');
111 111 }
... ...
... ... @@ -15,7 +15,7 @@
15 15 <script src="<?=JSURL?>transPngBg.js" type="text/javascript"></script>
16 16 <script src="<?=JSURL?>personAdmin/personSearch1.js"
17 17 type="text/javascript"></script>
18   - <script src="<?=JSURL?>personAdmin/personInUp.js"
  18 + <script src="<?=JSURL?>personAdmin/personForm.js"
19 19 type="text/javascript"></script>
20 20 <script src="<?=JSURL?>personAdmin/person.js"
21 21 type="text/javascript"></script>
... ... @@ -43,7 +43,7 @@
43 43 </noscript>
44 44 <?=$this->personSearch1?>
45 45 <div style="height: 5px; line-height: 5px">&nbsp;</div>
46   - <?=$this->personInUp?>
  46 + <?=$this->personForm?>
47 47 </div>
48 48 <br />
49 49 <pre><? var_dump ($_REQUEST) ?></pre>
... ...
... ... @@ -3,10 +3,10 @@
3 3 submit_str = '<?=_('submit')?>';
4 4 delete_str = '<?=_('delete')?>';
5 5
6   - pInUp = new personInUp (
  6 + pForm = new personForm (
7 7 'update', 'insert', 'send', person, newPerson, arrRight, arrDown);
8 8
9   - function personInUpInit ()
  9 + function personFormInit ()
10 10 {
11 11 var tCam = document.getElementById ('title_photographer');
12 12 var tCamImg = tCam.getElementsByTagName ('img')[0];
... ... @@ -26,19 +26,19 @@
26 26 <td>
27 27 <input type="checkbox" id="update" name="action"
28 28 value="update" disabled="true"
29   - onClick="pInUp.updateForm ()" />
  29 + onClick="pForm.updateForm ()" />
30 30 </td>
31 31 <td><?=_('update')?></td>
32 32 <td>&nbsp;&nbsp;</td>
33 33 <td>
34 34 <input type="checkbox" id="insert" name="action"
35 35 value="insert"
36   - onClick="pInUp.updateForm ()" />
  36 + onClick="pForm.updateForm ()" />
37 37 </td>
38 38 <td><?=_('insert')?></td>
39 39 <td align="right" width="100%">
40 40 <input type="button" id="send" value="<?=_('submit')?>"
41   - onClick="return pInUp.sendForm ('pForm')" disabled="true" />
  41 + onClick="return pForm.sendForm ('pForm')" disabled="true" />
42 42 </td>
43 43 </tr></table>
44 44 </div>
... ... @@ -63,31 +63,31 @@
63 63 <div>
64 64 <input type="text" style="width: 200px" maxlength="255"
65 65 id="firstname" name="firstname" value="" disabled="true"
66   - onChange="pInUp.setFirstname (this.value)" />
  66 + onChange="pForm.setFirstname (this.value)" />
67 67 <?=_('firstname')?>
68 68 </div>
69 69 <div>
70 70 <input type="text" style="width: 200px" maxlength="255"
71 71 id="surname" name="surname" value="" disabled="true"
72   - onChange="pInUp.setSurname (this.value)" />
  72 + onChange="pForm.setSurname (this.value)" />
73 73 <?=_('surname')?>
74 74 </div>
75 75 <div>
76 76 <input type="text" style="width: 200px" maxlength="255"
77 77 id="company" name="company" value="" disabled="true"
78   - onChange="pInUp.setCompany (this.value)" />
  78 + onChange="pForm.setCompany (this.value)" />
79 79 <?=_('company')?>
80 80 </div>
81 81 <div>
82 82 <input type="text" style="width: 200px" maxlength="255"
83 83 id="email" name="email" value="" disabled="true"
84   - onChange="pInUp.setEmail (this.value)" />
  84 + onChange="pForm.setEmail (this.value)" />
85 85 <?=_('email')?>
86 86 </div>
87 87 <div>
88 88 <input type="text" style="width: 200px" maxlength="255"
89 89 id="url" name="url" value="" disabled="true"
90   - onChange="pInUp.setUrl (this.value)" />
  90 + onChange="pForm.setUrl (this.value)" />
91 91 <?=_('url')?>
92 92 </div>
93 93 </div>
... ... @@ -105,7 +105,7 @@
105 105 margin-right: 3px;
106 106 float: right;
107 107 cursor: pointer"
108   - onClick="pInUp.showHideBlock ('title_photographer')" />
  108 + onClick="pForm.showHideBlock ('title_photographer')" />
109 109 </td></tr>
110 110 </table>
111 111 </div>
... ... @@ -117,7 +117,7 @@
117 117 <div>
118 118 <input type="text" style="width: 200px" maxlength="255"
119 119 id="cameraId" name="cameraId" value="-1" disabled="true"
120   - onChange="pInUp.setCameraId (this.value)" />
  120 + onChange="pForm.setCameraId (this.value)" />
121 121 <?=_('cameraId')?>
122 122 </div>
123 123 </div>
... ... @@ -135,7 +135,7 @@
135 135 float: right;
136 136 margin-right: 3px;
137 137 cursor: pointer"
138   - onClick="pInUp.showHideBlock ('title_owner')" />
  138 + onClick="pForm.showHideBlock ('title_owner')" />
139 139 </td></tr>
140 140 </table>
141 141 </div>
... ... @@ -146,25 +146,25 @@
146 146 <div>
147 147 <input type="text" style="width: 200px" maxlength="255"
148 148 id="wmWidth" name="wmWidth" value="" disabled="true"
149   - onChange="pInUp.setWmWidth (this.value)" />
  149 + onChange="pForm.setWmWidth (this.value)" />
150 150 <?=_('watermark width')?>
151 151 </div>
152 152 <div>
153 153 <input type="text" style="width: 200px" maxlength="255"
154 154 id="wmHeight" name="wmHeight" value="" disabled="true"
155   - onChange="pInUp.setWmHeight (this.value)" />
  155 + onChange="pForm.setWmHeight (this.value)" />
156 156 <?=_('watermark height')?>
157 157 </div>
158 158 <div>
159 159 <input type="text" style="width: 200px" maxlength="255"
160 160 id="wmXPos" name="wmXPos" value="" disabled="true"
161   - onChange="pInUp.setWmXPos (this.value)" />
  161 + onChange="pForm.setWmXPos (this.value)" />
162 162 <?=_('watermark xPos')?>
163 163 </div>
164 164 <div>
165 165 <input type="text" style="width: 200px" maxlength="255"
166 166 id="wmYPos" name="wmYPos" value="" disabled="true"
167   - onChange="pInUp.setWmYPos (this.value)" />
  167 + onChange="pForm.setWmYPos (this.value)" />
168 168 <?=_('watermark yPos')?>
169 169 </div>
170 170 </div>
... ... @@ -178,6 +178,6 @@
178 178
179 179 <script language="javascript">
180 180 //<![CDATA[
181   - personInUpInit ();
  181 + personFormInit ();
182 182 //]]>
183 183 </script>
... ...
Please register or login to post a comment