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_adv.php
<?php $name = explode(",", $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 counter = <?=$statr?>; var limit=<?=$vv['table_limit']?>; $("#addrow").on("click", function () { if(counter>=limit){ $('#table_row_ad_overlimit').html('θΆ ιιεΆζΈι'); return false; }else{ var newRow = $("<tr>"); var cols = ""; cols += '<?php echo '"'; foreach ($name as $key => $value) { echo '<td class=text-center>'; foreach ($field as $key1 => $value1) { if($key1==$key){ $tmp_value = $value.$x; $tmp_title = $title[$key]; } } ?><input name="<?=$tmp_value?>" type="text" placeholder="<?=$tmp_title?>"" class="form-control"><?php echo '</td>'; } ?>'; cols += '<td><button type="button" class="ibtnDel btn btn-default"><span class="glyphicon glyphicon-trash"></span></button></td>'; newRow.append(cols); $("table.order-list").append(newRow); counter++; console.log(counter); $('#table_row_ad_count').val(counter); } }); $("table.order-list").on("click", ".ibtnDel", function (event) { $('#table_row_ad_overlimit').html(''); $(this).closest("tr").remove(); counter -= 1; console.log(counter); $('#table_row_ad_count').val(counter); }); }); function active (table) { $(table).addClass("active"); } function dis_active (table) { $(table).removeClass("active"); } </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 id="myTable" class=" table order-list"> <thead> <tr> '; foreach ($title as $key => $titles) { echo '<th class="text-center">'.$titles.'</th>'; } echo ' </tr> </thead> <tbody>'; if(count($vv['value'])==0){ echo '<tr class="text-center"> '; foreach ($name as $key => $value) { echo '<td class="text-center">'; 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 '<td><a class="deleteRow"></a></td>'; echo '</tr>'; }else{ for ($x=0; $x <count($vv['value']); $x++) { echo '<tr class="text-center"> '; foreach ($name as $key => $value) { echo '<td class="text-center">'; 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][$value].'">'; } echo '</td>'; if($x==0){ echo '<td><a class="deleteRow"></a></td>'; }else{ echo '<td><button type="button" class="ibtnDel btn btn-default"><span class="glyphicon glyphicon-trash"></span></button></td>'; } echo '</tr>'; } } echo ' </tbody> <tfoot> <tr class="text-center"> <td colspan="'.(count($name)+1).'" style="text-align: left;"> <a id="addrow" class="btn btn-default btn-lg btn-block "><span class="glyphicon glyphicon-plus"></span> ε’ε ε</a> </td> </tr> <tr> </tr> </tfoot> </table> <p class="help-block" style="color:red;" id="table_row_ad_overlimit"></p> <input type="hidden" id="table_row_ad_count" name="table_row_ad_count" value="'.count($vv[value]).'"> </div> </div> </div> </div> '; ?>
Upload File
Create Folder