dqcuq4138 2016-03-16 13:11
浏览 34

如何使用Angular.js和PHP在一个时间间隔内限制下拉菜单

I need one help.I need to active one drop down menu for 2 days then after 2 days it will not display to the user using PHP and Angular.js. I am explaining my code below.

<tr ng-repeat="p in listOfProductData">
  <td>
       <select class="form-control"  id="status" ng-model="order_status" ng-change="changeOrderStatus(order_id,shipping_email,p.pro_data_id,order_status)">
          <option value="">Select Status</option>
          <option value="Ordered">ORDERED</option>
          <option value="InProgress">IN-PROGRESS</option>
          <option value="Shipped">SHIPPED</option>
          <option value="Delivered">DELIVERED</option>
          <option value="Canceled">CANCELED</option>
          <option value="Return">RETURN</option>
       </select>
  </td>
</tr>

In the above select menu i have one RETURN option i need to active it for 2 days according to the datetime saved in my database.I am explaining my table below.

db_time:

id   cur_time

1    2016-03-16 14:33:19

at each page reload it will check the this time in database if it 2 days is already gone the return option will not display to user.listOfProductData will contain the value from db_time table.Please help me.

  • 写回答

2条回答 默认 最新

  • douju4594 2016-03-16 13:17
    关注

    After check db_time use data-ng-show to show and hide menu for users.

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端