📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
propanel
/
view
/
template
/
mmstock
📝
mmstock_list.twig
← Geri Dön
{{header}}{{ column_left }} <div id="content"> <div class="page-header"> <div class="container-fluid"> <div class="pull-right"><!--<a href="<?php echo $add; ?>" data-toggle="tooltip" title="<?php echo $button_add; ?>" class="btn btn-primary"><i class="fa fa-plus"></i></a>--> <!-- <a href="<?php echo $bulknotify; ?>" data-toggle="tooltip" title="<?php echo $button_bulknotify; ?>" class="btn btn-primary"><i class="fa fa-send"></i> <?php echo $button_bulknotify; ?></a> --> <button data-toggle="tooltip" title="{{button_bulknotify}}" class="btn btn-primary" onclick="$('#form-mmstock').attr('action','{{ bulknotify}}'); confirm('{{text_confirm}}') ? $('#form-mmstock').submit() : false;"><i class="fa fa-send"></i> {{button_bulknotify}}</button> <button type="button" data-toggle="tooltip" title="{{button_delete}}" class="btn btn-danger" onclick="confirm('{{text_confirm}}') ? $('#form-mmstock').submit() : false;"><i class="fa fa-trash-o"></i></button> </div> <h1>{{heading_title}}</h1> </div> </div> <div class="container-fluid"> {% if error_warning %} <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{error_warning}} <button type="button" class="close" data-dismiss="alert">×</button> </div> {% endif %} {% if success %} <div class="alert alert-success"><i class="fa fa-check-circle"></i> {{success}} <button type="button" class="close" data-dismiss="alert">×</button> </div> {% endif %} <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-list"></i> {{text_list}}</h3> </div> <div class="panel-body"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="form-group"> <label class="control-label" for="input-filter_notified">{{column_notified}}</label> <select name="filter_notified" id="input-filter_notified" class="form-control"> <option value="" ><?php // echo $text_yes; ?>All</option> <option value="1" {% if filter_notified==1 %} selected {% endif %} >Notified<?php // echo $text_yes; ?></option> <option value="0" {% if filter_notified==0 %} selected {% endif %} >Pending<?php // echo $text_no; ?></option> </select> </div> <button type="button" id="button-filter" class="btn btn-primary pull-right"><i class="fa fa-filter"></i> {{button_filter}}</button> </div> </div> </div> <form action="{{delete}}" method="post" enctype="multipart/form-data" id="form-mmstock"> <div class="table-responsive"> <table class="table table-bordered table-hover"> <thead> <tr> <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td> <td class="text-left">{% if sort == 'name' %} <a href="{{ sort_name }}" class="<?php echo strtolower($order); ?>">{{column_name}}</a> {% else %} <a href="{{ sort_name }}">{{ column_name }}</a> {% endif %}</td> <td class="text-right"><?php // echo $column_email; ?> Customer</td> <td class="text-right">{{column_email}}</td> <td class="text-right">{{column_phone}}</td> <td class="text-right">{{column_product_info}}</td> <td class="text-right">{{column_notified}}</td> <td class="text-right">{{column_date}}</td> <td class="text-right">{{column_action}}</td> </tr> </thead> <tbody> {% if mmstocks %} {% for mmstock in mmstocks %} <tr> <td class="text-center">{% if mmstock.mm_sid in selected %} <input type="checkbox" name="selected[]" value="{{ mmstock.mm_sid }}" checked="checked" /> {% else %} <input type="checkbox" name="selected[]" value="{{ mmstock.mm_sid }}" /> {% endif %}</td> <td class="text-left">{{ mmstock.name }}</td> <td class="text-left"> {% if mmstock.customer_id %} <span class="label label-info">Registered</span> {% else %} <span class="label label-warning">Guest</span> {% endif %} </td> <td class="text-right">{{ mmstock.email }}</td> <td class="text-right">{{ mmstock.phone }}</td> <td class="text-right"> {% set qstats = 0 %} <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <td class="text-center">{{column_image}}</td> <td class="text-left">{{column_product}}</td> <td class="text-right">{{column_quantity}}</td> </tr> </thead> <tbody id="list-cart"> {% if mmstock['product_var'] %} {% set product_row = 0 %} {% for order_product in mmstock['product_var'] %} {% if order_product['quantity']>0 %} {% set qstats = 1 %} {% else %} {% set qstats = 0 %} {% endif %} <tr> <td class="text-center"> {% if order_product['image'] %} <img src="{{order_product['image']}}" alt="<?php echo $order_product['name']; ?>" class="img-thumbnail" /> {% else %} <span class="img-thumbnail list"><i class="fa fa-camera fa-2x"></i></span> {% endif %} </td> <td class="text-left">{{order_product['name']}}</td> <td class="text-center"><span class="label label-danger">{{order_product['quantity']}}</span> <input type="hidden" name="product[{{product_row}}][quantity]" value="<?php echo $order_product['quantity']; ?>" /> <br> <br> <a href="{{order_product['href']}}"><span class="label label-primary">Update Quantity</span></a> </td> </tr> {% set product_row = product_row + 1 %} {% endfor %} {% else %} <tr> <td class="text-center" colspan="10">{{text_no_results}}</td> </tr> </tbody> {% endif %} </table> </div> </td> <td class="text-right">{% if mmstock['notified']=="Notified" %}<span class="label label-success">{{mmstock['notified']}}</span>{% else %}<span class="label label-danger">{{mmstock['notified']}}</span>{% endif %}</td> <td class="text-left">{{mmstock['date_added']}}</td> <td class="text-right"><!--<a href="<?php echo $mmstock['edit']; ?>" data-toggle="tooltip" title="<?php echo $button_edit; ?>" class="btn btn-primary"><i class="fa fa-pencil"></i></a>--> <a {% if qstats==1 %} title="<?php // echo $button_edit; ?>Notify Customer" href="{{mmstock['send']}}" {% else %} disabled title=' If Product quantity is 0 then notify is disabed' {% endif %} data-toggle="tooltip" class="btn btn-primary"><i class="fa fa-send"></i></a></td> </tr> {% endfor %} {% else %} <tr> <td class="text-center" colspan="10">{{ text_no_results }}</td> </tr> {% endif %} </tbody> </table> </div> </form> <div class="row"> <div class="col-sm-6 text-left">{{pagination}}</div> <div class="col-sm-6 text-right">{{results}}</div> </div> </div> </div> </div> </div> <script type="text/javascript"><!-- $('#button-filter').on('click', function() { url = ''; var filter_notified = $('select[name=\'filter_notified\']').val(); if (filter_notified) { url += '&filter_notified=' + encodeURIComponent(filter_notified); } location = 'index.php?route=mmstock/mmstock&user_token={{user_token}}' + url; }); //--></script> {{footer}}
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula