forked from xiaoyao-work/TP-Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xiaoyao
committed
Dec 7, 2017
1 parent
1aaa1bb
commit 6479073
Showing
9 changed files
with
106 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
<table cellpadding="2" cellspacing="1" width="98%"> | ||
<tr> | ||
<td width="100">取值范围</td> | ||
<td><input type="text" name="setting[minnumber]" value="1" size="5" class="input-text"> - <input type="text" name="setting[maxnumber]" value="" size="5" class="input-text"></td> | ||
<tr> | ||
<td width="100">取值范围</td> | ||
<td><input type="text" name="setting[minnumber]" value="1" size="5" class="input-text"> - <input type="text" name="setting[maxnumber]" value="" size="5" class="input-text"></td> | ||
</tr> | ||
<tr> | ||
<td>小数位数:</td> | ||
<td> | ||
<select name="setting[decimaldigits]"> | ||
<option value="-1">自动</option> | ||
<option value="0" selected>0</option> | ||
<option value="1">1</option> | ||
<option value="2">2</option> | ||
<option value="3">3</option> | ||
<option value="4">4</option> | ||
<option value="5">5</option> | ||
</select> | ||
</td> | ||
<tr> | ||
<td width="100">字段长度</td> | ||
<td><select name="setting[fieldtype]"> | ||
<option value="number">number</option> | ||
<option value="int">int</option> | ||
<option value="mediumint">mediumint</option> | ||
<option value="smallint">smallint</option> | ||
<option value="tinyint">tinyint</option> | ||
</select></td> | ||
</tr> | ||
<tr> | ||
<td>输入框长度</td> | ||
<td><input type="text" name="setting[size]" value="" size="3" class="input-text"> px</td> | ||
<td>小数位数:</td> | ||
<td> | ||
<select name="setting[decimaldigits]"> | ||
<option value="-1">自动</option> | ||
<option value="0" selected>0</option> | ||
<option value="1">1</option> | ||
<option value="2">2</option> | ||
<option value="3">3</option> | ||
<option value="4">4</option> | ||
<option value="5">5</option> | ||
</select> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>默认值</td> | ||
<td><input type="text" name="setting[defaultvalue]" value="" size="40" class="input-text"></td> | ||
<tr> | ||
<td>输入框长度</td> | ||
<td><input type="text" name="setting[size]" value="" size="3" class="input-text"> px</td> | ||
</tr> | ||
<tr> | ||
<td>默认值</td> | ||
<td><input type="text" name="setting[defaultvalue]" value="" size="40" class="input-text"></td> | ||
</tr> | ||
<tr> | ||
<td>是否作为区间字段</td> | ||
<td> | ||
<input type="radio" name="setting[rangetype]" value="1"/> 是 | ||
<input type="radio" name="setting[rangetype]" value="0" checked />否 注:区间字段可以通过filters('字段名称','模型id','自定义数组')调用 | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
<table cellpadding="2" cellspacing="1" width="98%"> | ||
<tr> | ||
<td width="100">取值范围</td> | ||
<td><input type="text" name="setting[minnumber]" value="<?php echo $setting['minnumber'];?>" size="5" class="input-text"> - <input type="text" name="setting[maxnumber]" value="<?php echo $setting['maxnumber'];?>" size="5" class="input-text"></td> | ||
<tr> | ||
<td width="100">取值范围</td> | ||
<td><input type="text" name="setting[minnumber]" value="<?php echo $setting['minnumber'];?>" size="5" class="input-text"> - <input type="text" name="setting[maxnumber]" value="<?php echo $setting['maxnumber'];?>" size="5" class="input-text"></td> | ||
</tr> | ||
<tr> | ||
<td>小数位数:</td> | ||
<td> | ||
<select name="setting[decimaldigits]"> | ||
<option value="-1" <?php if($setting['decimaldigits']==-1) echo 'selected';?>)>自动</option> | ||
<option value="0" <?php if($setting['decimaldigits']==0) echo 'selected';?>>0</option> | ||
<option value="1" <?php if($setting['decimaldigits']==1) echo 'selected';?>>1</option> | ||
<option value="2" <?php if($setting['decimaldigits']==2) echo 'selected';?>>2</option> | ||
<option value="3" <?php if($setting['decimaldigits']==3) echo 'selected';?>>3</option> | ||
<option value="4" <?php if($setting['decimaldigits']==4) echo 'selected';?>>4</option> | ||
<option value="5" <?php if($setting['decimaldigits']==5) echo 'selected';?>>5</option> | ||
</select> | ||
</td> | ||
<tr> | ||
<td width="100">字段长度</td> | ||
<td><select name="setting[fieldtype]"> | ||
<option value="number" <?php if($setting['fieldtype']=='number') echo 'selected';?>)>number</option> | ||
<option value="int" <?php if($setting['fieldtype']=='int') echo 'selected';?>)>int</option> | ||
<option value="mediumint" <?php if($setting['fieldtype']=='mediumint') echo 'selected';?>>mediumint</option> | ||
<option value="smallint" <?php if($setting['fieldtype']== 'smallint') echo 'selected';?>>smallint</option> | ||
<option value="tinyint" <?php if($setting['fieldtype']== 'tinyint') echo 'selected';?>>tinyint</option> | ||
</select></td> | ||
</tr> | ||
<tr> | ||
<td>输入框长度</td> | ||
<td><input type="text" name="setting[size]" value="<?php echo isset($setting['size']) ? $setting['size'] : '';?>" size="3" class="input-text"> px</td> | ||
<tr> | ||
<td>小数位数:</td> | ||
<td> | ||
<select name="setting[decimaldigits]"> | ||
<option value="-1" <?php if($setting['decimaldigits']==-1) echo 'selected';?>)>自动</option> | ||
<option value="0" <?php if($setting['decimaldigits']==0) echo 'selected';?>>0</option> | ||
<option value="1" <?php if($setting['decimaldigits']==1) echo 'selected';?>>1</option> | ||
<option value="2" <?php if($setting['decimaldigits']==2) echo 'selected';?>>2</option> | ||
<option value="3" <?php if($setting['decimaldigits']==3) echo 'selected';?>>3</option> | ||
<option value="4" <?php if($setting['decimaldigits']==4) echo 'selected';?>>4</option> | ||
<option value="5" <?php if($setting['decimaldigits']==5) echo 'selected';?>>5</option> | ||
</select> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>默认值</td> | ||
<td><input type="text" name="setting[defaultvalue]" value="<?php echo $setting['defaultvalue'];?>" size="40" class="input-text"></td> | ||
<tr> | ||
<td>输入框长度</td> | ||
<td><input type="text" name="setting[size]" value="<?php echo isset($setting['size']) ? $setting['size'] : '';?>" size="3" class="input-text"> px</td> | ||
</tr> | ||
<tr> | ||
<td>默认值</td> | ||
<td><input type="text" name="setting[defaultvalue]" value="<?php echo $setting['defaultvalue'];?>" size="40" class="input-text"></td> | ||
</tr> | ||
<tr> | ||
<td>是否作为区间字段</td> | ||
<td> | ||
<input type="radio" name="setting[rangetype]" value="1" <?php if($setting['rangetype']) echo 'checked';?> /> 是 | ||
<input type="radio" name="setting[rangetype]" value="0" <?php if(!$setting['rangetype']) echo 'checked';?> /> 否 注:区间字段可以通过filters('字段名称','模型id','自定义数组')调用 | ||
</td> | ||
</tr> | ||
</table> |