当前位置: 首页>>代码示例>>PHP>>正文


PHP System_helper::display_date方法代码示例

本文整理汇总了PHP中System_helper::display_date方法的典型用法代码示例。如果您正苦于以下问题:PHP System_helper::display_date方法的具体用法?PHP System_helper::display_date怎么用?PHP System_helper::display_date使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System_helper的用法示例。


在下文中一共展示了System_helper::display_date方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_record_list

 public function get_record_list()
 {
     $CI =& get_instance();
     $CI->db->from($CI->config->item('table_product_assign') . ' pa');
     $CI->db->select('pa.id,pa.received_by,pa.status,pa.assign_date,pa.return_date,pa.remarks,user.name_en user_name,product.product_name,received_by.name_en receiver_name');
     $CI->db->join($CI->config->item('table_users') . ' user', 'user.id = pa.user_id', 'LEFT');
     $CI->db->join($CI->config->item('table_users') . ' received_by', 'received_by.id = pa.received_by', 'LEFT');
     $CI->db->join($CI->config->item('table_product') . ' product', 'product.id = pa.product_id', 'LEFT');
     $CI->db->where('pa.status = 1');
     $results = $this->db->get()->result_array();
     foreach ($results as &$result) {
         $result['edit_link'] = $CI->get_encoded_url('asset_management/product_assign/index/edit/' . $result['id']);
         $result['assign_date'] = System_helper::display_date($result['assign_date']);
         $result['return_date'] = System_helper::display_date($result['return_date']);
         if ($result['status'] == $this->config->item('STATUS_ACTIVE')) {
             $result['status_text'] = $CI->lang->line('ACTIVE');
         } else {
             if ($result['status'] == $this->config->item('STATUS_INACTIVE')) {
                 $result['status_text'] = $CI->lang->line('INACTIVE');
             } else {
                 $result['status_text'] = $result['status'];
             }
         }
     }
     return $results;
 }
开发者ID:mazba,项目名称:ams,代码行数:26,代码来源:Product_assign_model.php

示例2: get_product_name

 public function get_product_name($str)
 {
     $CI =& get_instance();
     //$this->db->select('*');
     $CI->db->from($CI->config->item('table_product'));
     $this->db->like('product_name', $str, 'after');
     //        $CI->db->where();
     $CI->db->select("CONCAT(product_name, '.',product_code) as label", FALSE);
     $CI->db->select('product_name as product_name,product_code as product_code,serial_number as serial_numb,unit_price as unit_price,model_no as model_no,warranty_start_date as warranty_start_date,warranty_end_date as warranty_end_date,condition as status');
     $results = $this->db->get()->result_array();
     foreach ($results as &$val) {
         if ($val['status'] == 0) {
             $val['status'] = "সক্রিয়";
         } else {
             $val['status'] = "ত্রুটিপূর্ণ";
         }
         if ($val['warranty_start_date'] > 0) {
             $val['warranty_start_date'] = System_helper::display_date($val['warranty_start_date']);
         }
         if ($val['warranty_end_date'] > 0) {
             $val['warranty_end_date'] = System_helper::display_date($val['warranty_end_date']);
         }
     }
     return $results;
 }
开发者ID:mazba,项目名称:ams,代码行数:25,代码来源:Product_model.php

示例3:

"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group has-success row">
                                            <div class="col-lg-4">
                                                <label class="control-label bold"
                                                       for="purchase_order_no"><?php 
echo $CI->lang->line('PURCHASE_DATE');
?>
</label>
                                            </div>
                                            <div class="col-lg-8">
                                                <input type="text" name="product[purchase_date]"
                                                       value="<?php 
echo System_helper::display_date($product['purchase_date']);
?>
"
                                                       placeholder="<?php 
echo $CI->lang->line('PURCHASE_DATE');
?>
"
                                                       class="form-control date-picker">
                                            </div>
                                        </div>
                                        <div class="form-group has-success row">
                                            <div class="col-lg-4">
                                                <label
                                                    class="control-label bold"><?php 
echo $CI->lang->line('OTHERS');
?>
开发者ID:mazba,项目名称:ams,代码行数:31,代码来源:add_edit.php

示例4:

            <td><?php 
    echo $product['contact_person'];
    ?>
</td>
            <td><?php 
    echo $product['contact_person_phone'];
    ?>
</td>


            <td><?php 
    echo System_helper::display_date($product['purchase_date']);
    ?>
</td>
            <td><?php 
    echo System_helper::display_date($product['warranty_end_date']);
    ?>
</td>
            <td><?php 
    echo $product['condition'] ? 'ত্রুটিপূর্ণ' : 'ভাল';
    ?>
</td>
        </tr>
        <?php 
}
?>
    </tbody>
</table>
</div>
</div>
</div>
开发者ID:mazba,项目名称:ams,代码行数:31,代码来源:report_format.php

示例5:

</b>:<?php 
echo " " . $product_info['warehouse_name'];
?>
</p>
                <p><b><?php 
echo $CI->lang->line('WARRANTY_START_DATE');
?>
</b>:<?php 
echo " " . System_helper::display_date($product_info['warranty_start_date']);
?>
</p>
                <p><b><?php 
echo $CI->lang->line('WARRANTY_END_DATE');
?>
</b>:<?php 
echo " " . System_helper::display_date($product_info['warranty_end_date']);
?>
</p>
                <p><b><?php 
echo $CI->lang->line('STATUS');
?>
</b>:<?php 
echo " ";
if ($product_info['condition'] == 0) {
    echo "ভাল";
} else {
    echo 'ত্রুটিপূর্ণ';
}
?>
</p>
                <hr/>
开发者ID:mazba,项目名称:ams,代码行数:31,代码来源:add_edit.php


注:本文中的System_helper::display_date方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。