X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/backend/func/form_elements
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
backend
/
func
/
form_elements
/
π
..
π
analytics.php
(920 B)
π
checkbox.php
(1.02 KB)
π
color.php
(1.71 KB)
π
date.php
(455 B)
π
date1.php
(669 B)
π
datetime.php
(425 B)
π
datetime_show.php
(353 B)
π
end_title.php
(68 B)
π
event_coupon.php
(206 B)
π
event_medals.php
(206 B)
π
event_member.php
(534 B)
π
event_ques.php
(200 B)
π
event_question.php
(200 B)
π
file.php
(849 B)
π
fileinput.php
(2.43 KB)
π
hidden.php
(88 B)
π
html.php
(422 B)
π
image.php
(1.67 KB)
π
image_ajax.php
(3.41 KB)
π
image_ajax_fileinput.php
(3.41 KB)
π
image_resize.php
(1.71 KB)
π
image_show.php
(1.74 KB)
π
list.php
(1.06 KB)
π
more_title.php
(300 B)
π
password.php
(427 B)
π
radio.php
(687 B)
π
radio1.php
(507 B)
π
search_item.php
(3.68 KB)
π
search_item2.php
(4.09 KB)
π
search_item2_B.php
(4.13 KB)
π
search_item2_discount.php
(4.09 KB)
π
search_item_B.php
(3.53 KB)
π
search_item_discount.php
(3.98 KB)
π
select.php
(618 B)
π
select1.php
(552 B)
π
select_TWzipcode.php
(1.16 KB)
π
select_TWzipcode_all.php
(1.31 KB)
π
select_TWzipcode_county.php
(986 B)
π
select_display.php
(547 B)
π
select_display_first.php
(569 B)
π
select_show.php
(530 B)
π
show.php
(199 B)
π
show1.php
(245 B)
π
store_list.php
(203 B)
π
table_row.php
(4.31 KB)
π
table_row_adv.php
(4.74 KB)
π
table_row_color.php
(7.34 KB)
π
tag.php
(979 B)
π
text.php
(423 B)
π
text1.php
(444 B)
π
text_display.php
(452 B)
π
text_display_first.php
(474 B)
π
text_show.php
(317 B)
π
textarea.php
(534 B)
π
textarea_show.php
(376 B)
Editing: table_row.php
<?php $name = explode(",", $vv['table_name']); // $name = $vv['table_name']; $field = explode(",", $vv['table_field']); $title = explode(",", $vv['table_title']); if(count($vv['value'])==0){ $statr = 1; }else{ $statr = count($vv['value']); } ?> <script type="text/javascript"> $(document).ready(function(){ var i=<?=$statr?>; var limit=<?=$vv['table_limit']?>; $("#add_row").click(function(){ if(i>=limit){ $('#table_row_overlimit').html('θΆ ιιεΆζΈι'); return false; }else{ $('#addr'+i).html("<td class='text-center' width='<?=round(100/(count($field)+1))?>'>"+ (i+1) +"</td>"+ <?php echo '"'; foreach ($name as $key => $value) { echo '<td class=\'text-center\' width=\''.round(100/(count($field)+1)).'%\'>'; foreach ($field as $key1 => $value1) { if($key1==$key){ $tmp_value = $value; $tmp_title = $title[$key]; } } ?><input name='<?=$tmp_value?>"+i+"' type='text' placeholder='<?=$tmp_title?>' class='form-control'><?php echo '</td>'; } ?>" ); $('#tab_logic').append('<tr id="addr'+(i+1)+'"></tr>'); i++; $('#table_row_count').val(i); } }); $("#delete_row").click(function(){ $('#table_row_overlimit').html(''); if(i>1){ $("#addr"+(i-1)).html(''); i--; $('#table_row_count').val(i); } }); }); </script> <?php echo ' <div class="form-group"> <label class="control-label col-sm-2">'.($vv['title']).'</label> <div class="col-sm-10"> '; echo ' <div class="tab-pane active"> <div class="table-responsive"> <table class="table" id="tab_logic"> <thead> <tr> <th class="text-center">#</th> '; foreach ($title as $key => $titles) { echo '<th class="text-center">'.$titles.'</th>'; } echo ' </tr> </thead> <tbody>'; if(count($vv['value'])==0){ echo '<tr class="vertical-md-middle text-center active" id="addr0"> '; echo '<td class="text-center" width="'.round(100/(count($field)+1)).'%">1</td>'; foreach ($name as $key => $value) { echo '<td class="text-center" width="'.round(100/(count($field)+1)).'%">'; foreach ($field as $key1 => $value1) { if($key1==$key){ $tmp_value = $value.$key; $tmp_title = $title[$key]; } } echo '<input type="text" name="'.$tmp_value.'" class="form-control" placeholder="'.$tmp_title.'">'; echo '</td>'; } echo '</tr><tr id="addr1"></tr>'; }else{ for ($x=0; $x <count($vv['value']); $x++) { echo '<tr class="vertical-md-middle text-center active" id="addr'.$x.'"> '; echo '<td class="text-center" width="'.round(100/(count($field)+1)).'%">'.($x+1).'</td>'; foreach ($name as $key => $value) { echo '<td class="text-center" width="'.round(100/(count($field)+1)).'%">'; foreach ($field as $key1 => $value1) { if($key1==$key){ $tmp_value = $value.$x; $tmp_title = $title[$key]; } } echo '<input type="text" name="'.$tmp_value.'" class="form-control" placeholder="'.$tmp_title.'" value="'.$vv['value'][$x].'">'; echo '<input type="hidden" name="'.$tmp_value.'_id" class="form-control" value="'.$vv['value1'][$x].'">'; } echo '</td>'; echo '</tr>'; } echo '</tr><tr id="addr'.($x).'"></tr> '; } echo ' </tbody> </table> <p class="help-block" style="color:red;" id="table_row_overlimit"></p> <input type="hidden" id="table_row_count" name="table_row_count" value="'.count($vv["value"]).'"> </div> <a id="add_row" class="btn btn-default pull-left"><span class="glyphicon glyphicon-plus"></span> ε’ε ε</a><a id="delete_row" class="pull-right btn btn-default"><span class="glyphicon glyphicon-minus"></span> εͺι€ε</a> </div> </div> </div> '; ?>
Upload File
Create Folder