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