Changeset 734391
- Timestamp:
- 06/30/2013 09:56:08 PM (13 years ago)
- Location:
- dynamic-plugin
- Files:
-
- 6 edited
-
tags/3.0.4/DF_DataBase.php (modified) (1 diff)
-
tags/3.0.4/DF_DefineDefinitions.php (modified) (3 diffs)
-
tags/3.0.4/jscripts/DF_DefineDefinitions.js (modified) (2 diffs)
-
trunk/DF_DataBase.php (modified) (1 diff)
-
trunk/DF_DefineDefinitions.php (modified) (3 diffs)
-
trunk/jscripts/DF_DefineDefinitions.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dynamic-plugin/tags/3.0.4/DF_DataBase.php
r729540 r734391 1578 1578 if($row["is_must"]=="1") 1579 1579 { 1580 $required=" <font color='red'>*</font>";1580 $required="1"; 1581 1581 } 1582 1582 $result.="<input type='image' title='".DF_DBFuncs::translate('Add To Form')."' src='".$dir."/images/Add.png' onClick='return DF_AddDoTinyMCEWithLabelDesigned(\"".$row["system_name"]."\",\"".$row["name"]."\", \"".$required."\")' />"; -
dynamic-plugin/tags/3.0.4/DF_DefineDefinitions.php
r727555 r734391 104 104 105 105 </tr> 106 <tr> <td colspan="2"><label for="values"><?php echo DF_DBFuncs::translate("Values")?></label></td> 107 </tr> 108 109 <tr> 110 <td colspan="2"><textarea name="values" id="values" cols="70" rows="2"></textarea></td> 111 </tr> 106 112 107 113 … … 115 121 </td> 116 122 </tr> 123 117 124 118 125 … … 145 152 146 153 </tr> 147 <tr> <td colspan="2"><label for="values"><?php echo DF_DBFuncs::translate("Values")?></label></td> 148 </tr> 149 150 151 <tr> 152 <td colspan="2"><textarea name="values" id="values" cols="70" rows="2"></textarea></td> 153 </tr> 154 155 156 157 154 158 155 159 -
dynamic-plugin/tags/3.0.4/jscripts/DF_DefineDefinitions.js
r729130 r734391 22 22 { 23 23 var newValue = DF_RemoveImpossible(field.value); 24 if(newValue=="" && field.value!="") 25 { 26 var randomnumber=Math.floor(Math.random()*100000); 27 newValue="field_"+randomnumber; 28 } 24 29 document.forms["defineDefinitionForm"]["system_name"].value= newValue; 25 30 } … … 180 185 { 181 186 182 return "<p><label for='[@id|"+sysname+"@]'><b>"+labelName+":</b></label>"+required+"<br /> [@" + sysname + "@]</p>"; 187 var requiredHtml=required; 188 if(required=="1") 189 { 190 requiredHtml="<font color='red'>*</font>"; 191 } 192 return "<p><label for='[@id|"+sysname+"@]'><b>"+labelName+":</b></label>"+requiredHtml+"<br /> [@" + sysname + "@]</p>"; 183 193 } 184 194 -
dynamic-plugin/trunk/DF_DataBase.php
r729540 r734391 1578 1578 if($row["is_must"]=="1") 1579 1579 { 1580 $required=" <font color='red'>*</font>";1580 $required="1"; 1581 1581 } 1582 1582 $result.="<input type='image' title='".DF_DBFuncs::translate('Add To Form')."' src='".$dir."/images/Add.png' onClick='return DF_AddDoTinyMCEWithLabelDesigned(\"".$row["system_name"]."\",\"".$row["name"]."\", \"".$required."\")' />"; -
dynamic-plugin/trunk/DF_DefineDefinitions.php
r724810 r734391 104 104 105 105 </tr> 106 <tr> <td colspan="2"><label for="values"><?php echo DF_DBFuncs::translate("Values")?></label></td> 107 </tr> 108 109 <tr> 110 <td colspan="2"><textarea name="values" id="values" cols="70" rows="2"></textarea></td> 111 </tr> 106 112 107 113 … … 115 121 </td> 116 122 </tr> 123 117 124 118 125 … … 145 152 146 153 </tr> 147 <tr> <td colspan="2"><label for="values"><?php echo DF_DBFuncs::translate("Values")?></label></td> 148 </tr> 149 150 151 <tr> 152 <td colspan="2"><textarea name="values" id="values" cols="70" rows="2"></textarea></td> 153 </tr> 154 155 156 157 154 158 155 159 -
dynamic-plugin/trunk/jscripts/DF_DefineDefinitions.js
r729130 r734391 22 22 { 23 23 var newValue = DF_RemoveImpossible(field.value); 24 if(newValue=="" && field.value!="") 25 { 26 var randomnumber=Math.floor(Math.random()*100000); 27 newValue="field_"+randomnumber; 28 } 24 29 document.forms["defineDefinitionForm"]["system_name"].value= newValue; 25 30 } … … 180 185 { 181 186 182 return "<p><label for='[@id|"+sysname+"@]'><b>"+labelName+":</b></label>"+required+"<br /> [@" + sysname + "@]</p>"; 187 var requiredHtml=required; 188 if(required=="1") 189 { 190 requiredHtml="<font color='red'>*</font>"; 191 } 192 return "<p><label for='[@id|"+sysname+"@]'><b>"+labelName+":</b></label>"+requiredHtml+"<br /> [@" + sysname + "@]</p>"; 183 193 } 184 194
Note: See TracChangeset
for help on using the changeset viewer.