• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP mydate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中mydate函数的典型用法代码示例。如果您正苦于以下问题:PHP mydate函数的具体用法?PHP mydate怎么用?PHP mydate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: comment

 public function comment($f3)
 {
     $id = $f3->get('PARAMS.3');
     $post = $this->Model->Posts->fetch($id);
     if ($this->request->is('post')) {
         $comment = $this->Model->Comments;
         $comment->copyfrom('POST');
         $comment->blog_id = $id;
         $comment->created = mydate();
         //Moderation of comments
         if (!empty($this->Settings['moderate']) && $this->Auth->user('level') < 2) {
             $comment->moderated = 0;
         } else {
             $comment->moderated = 1;
         }
         //Default subject
         if (empty($this->request->data['subject'])) {
             $comment->subject = 'RE: ' . $post->title;
         }
         $comment->save();
         //Redirect
         if ($comment->moderated == 0) {
             StatusMessage::add('Your comment has been submitted for moderation and will appear once it has been approved', 'success');
         } else {
             StatusMessage::add('Your comment has been posted', 'success');
         }
         return $f3->reroute('/blog/view/' . $id);
     }
 }
开发者ID:aayers95,项目名称:RobPress,代码行数:29,代码来源:blog.php


示例2: tpl_input_date

function tpl_input_date($params, $ctl)
{
    if (!$params['id']) {
        $params['id'] = $ctl->new_dom_id();
    }
    if (!$params['type']) {
        $params['type'] = 'date';
    }
    if (!$params['vtype']) {
        $params['vtype'] = 'date';
    }
    if (is_numeric($params['value'])) {
        $params['value'] = mydate('Y-m-d', $params['value']);
    }
    if (isset($params['concat'])) {
        $params['name'] .= $params['concat'];
        unset($params['concat']);
    }
    if (!$params['format'] || $params['format'] == 'timestamp') {
        $prefix = '<input type="hidden" name="_DTYPE_' . strtoupper($params['type']) . '[]" value="' . htmlspecialchars($params['name']) . '" />';
    } else {
        $prefix = '';
    }
    $params['type'] = 'text';
    $return = buildTag($params, 'input class="cal ' . $params['class'] . '" size="10" maxlength="10" autocomplete="off"');
    return $prefix . $return . '<script>$("' . $params['id'] . '").makeCalable();</script>';
}
开发者ID:noikiy,项目名称:MyShop,代码行数:27,代码来源:input.date.php


示例3: addView

 function addView($catid)
 {
     $this->pagedata['params'] = array('cat_id' => $catid);
     $this->pagedata['item'] = array('label' => 'New View ' . mydate('H:i:s'));
     $this->setView('product/category/view_row.html');
     $this->output();
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:7,代码来源:ctl.category.php


示例4: add

 public function add($f3)
 {
     if ($this->request->is('post')) {
         extract($this->request->data);
         $check = $this->Model->Users->fetch(array('username' => $username));
         if (!empty($check)) {
             StatusMessage::add('User already exists', 'danger');
         } else {
             if ($password != $password2) {
                 StatusMessage::add('Passwords must match', 'danger');
             } else {
                 $user = $this->Model->Users;
                 $user->copyfrom('POST');
                 $user->created = mydate();
                 $user->bio = '';
                 $user->level = 1;
                 $user->setPassword($password);
                 if (empty($displayname)) {
                     $user->displayname = $user->username;
                 }
                 //Set the users password
                 $user->setPassword($user->password);
                 $user->save();
                 StatusMessage::add('Registration complete', 'success');
                 return $f3->reroute('/user/login');
             }
         }
     }
 }
开发者ID:aayers95,项目名称:RobPress,代码行数:29,代码来源:user.php


示例5: tpl_modifier_userdate

function tpl_modifier_userdate($timestamp)
{
    if (!$GLOBALS['site_dateformat']) {
        $system =& $GLOBALS['system'];
        if (!($GLOBALS['site_dateformat'] = $system->getConf('site.dateFormat'))) {
            $GLOBALS['site_dateformat'] = "Y-m-d";
        }
    }
    return mydate($GLOBALS['site_dateformat'], $timestamp);
}
开发者ID:noikiy,项目名称:MyShop,代码行数:10,代码来源:modifier.userdate.php


示例6: smarty_modifier_usertime

function smarty_modifier_usertime($timestamp)
{
    if (!$GLOBALS['site_timeformat']) {
        $system =& $GLOBALS['system'];
        if (!($GLOBALS['site_timeformat'] = $system->getConf('site.timeFormat'))) {
            $GLOBALS['site_timeformat'] = "Y-m-d H:i:s";
        }
    }
    return mydate($GLOBALS['site_timeformat'], $timestamp);
}
开发者ID:dalinhuang,项目名称:shopexts,代码行数:10,代码来源:modifier.usertime.php


示例7: edit

 public function edit($f3)
 {
     $postid = $f3->get('PARAMS.3');
     $post = $this->Model->Posts->fetchById($postid);
     $blog = $this->Model->map($post, array('post_id', 'Post_Categories', 'category_id'), 'Categories', false);
     if ($this->request->is('post')) {
         extract($this->request->data);
         $post->copyfrom('POST');
         $post->modified = mydate();
         $post->user_id = $this->Auth->user('id');
         //Determine whether to publish or draft
         if (!isset($Publish)) {
             $post->published = null;
         } else {
             $post->published = mydate($published);
         }
         //Save changes
         $post->save();
         $link = $this->Model->Post_Categories;
         //Remove previous categories
         $old = $link->fetchAll(array('post_id' => $postid));
         foreach ($old as $oldcategory) {
             $oldcategory->erase();
         }
         //Now assign new categories
         if (!isset($categories)) {
             $categories = array();
         }
         foreach ($categories as $category) {
             $link->reset();
             $link->category_id = $category;
             $link->post_id = $postid;
             $link->save();
         }
         \StatusMessage::add('Post updated succesfully', 'success');
         return $f3->reroute('/admin/blog');
     }
     $_POST = $post->cast();
     foreach ($blog['Categories'] as $cat) {
         if (!$cat) {
             continue;
         }
         $_POST['categories'][] = $cat->id;
     }
     $categories = $this->Model->Categories->fetchList();
     $f3->set('categories', $categories);
     $f3->set('post', $post);
 }
开发者ID:za2e13,项目名称:za2e13,代码行数:48,代码来源:blog.php


示例8: add

 public function add($f3)
 {
     if ($this->request->is('post')) {
         $settings = $this->Model->Settings;
         $debug = $settings->getSetting('debug');
         if ($debug != 1) {
             $captcha = $_POST['g-recaptcha-response'];
             if (empty($captcha)) {
                 StatusMessage::add('Enter captcha please', 'danger');
                 $f3->reroute('/');
             }
             $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Ld6wBITAAAAAOSA4kywtpw1UbJExz1jz-j0EAyp&response=" . $captcha);
             $response = json_decode($response, true);
             if ($response["success"] == false) {
                 StatusMessage::add('No entry for spammers, sorry', 'danger');
                 $f3->reroute('/');
             }
         }
         extract($this->request->data);
         $check = $this->Model->Users->fetch(array('username' => $username));
         if (!empty($check)) {
             StatusMessage::add('User already exists', 'danger');
         } else {
             if ($password != $password2) {
                 StatusMessage::add('Passwords must match', 'danger');
             } else {
                 $user = $this->Model->Users;
                 $user->copyfrom('POST');
                 $user->created = mydate();
                 $user->bio = '';
                 $user->level = 1;
                 $user->setPassword($password);
                 if (empty($displayname)) {
                     $user->displayname = $user->username;
                 }
                 //Set the users password
                 $user->setPassword($user->password);
                 $user->save();
                 StatusMessage::add('Registration complete', 'success');
                 return $f3->reroute('/user/login');
             }
         }
     }
 }
开发者ID:za2e13,项目名称:za2e13,代码行数:44,代码来源:user.php


示例9: smarty_modifier_cdate

function smarty_modifier_cdate($string, $type)
{
    $system =& $GLOBALS['system'];
    $time = $string ? intval($string) : time();
    $time += ($system->getConf('system.timezone.default') - SERVER_TIMEZONE) * 3600;
    if (!$GLOBALS['site_dateformat']) {
        $system =& $GLOBALS['system'];
        if (!($GLOBALS['site_dateformat'] = $system->getConf('site.dateFormat'))) {
            $GLOBALS['site_dateformat'] = "Y-m-d";
        }
    }
    switch ($type) {
        case 'FDATE':
            $dateFormat = 'Y-m-d';
            break;
        case 'SDATE':
            $dateFormat = 'y-m-d';
            break;
        case 'DATE':
            $dateFormat = 'm-d';
            break;
        case 'FDATE_FTIME':
            $dateFormat = 'Y-m-d H:i:s';
            break;
        case 'FDATE_STIME':
            $dateFormat = 'Y-m-d H:i';
            break;
        case 'SDATE_FTIME':
            $dateFormat = 'y-m-d H:i:s';
            break;
        case 'SDATE_STIME':
            $dateFormat = 'y-m-d H:i';
            break;
        case 'DATE_FTIME':
            $dateFormat = 'm-d H:i:s';
            break;
        case 'DATE_STIME':
            $dateFormat = 'm-d H:i';
            break;
        default:
            $dateFormat = $GLOBALS['site_dateformat'];
    }
    return mydate($dateFormat, $time);
}
开发者ID:dalinhuang,项目名称:shopexts,代码行数:44,代码来源:modifier.cdate.php


示例10: operator

 function operator()
 {
     $this->path[] = array('text' => __('帐号设置'));
     $oOpt =& $this->system->loadModel('admin/operator');
     $data = $oOpt->instance($this->system->op_id);
     $this->pagedata['op_id'] = $this->system->op_id;
     $this->pagedata['data'] = $data;
     $data['config'] = unserialize($data['config']);
     $this->pagedata['timezone_value'] = $GLOBALS['user_timezone'];
     $zones = array();
     $realtime = time() - SERVER_TIMEZONE * 3600;
     $tzs = timezone_list();
     foreach ($tzs as $i => $tz) {
         $zones[$i] = mydate('H:i', $realtime + $i * 3600) . ' - ' . $tz;
     }
     $this->pagedata['timezones'] = $zones;
     $this->pagedata['server_tz'] = $tzs[SERVER_TIMEZONE];
     $this->pagedata['tzlist'] = $tzs;
     $this->display('admin/self.html');
 }
开发者ID:noikiy,项目名称:MyShop,代码行数:20,代码来源:ctl.profile.php


示例11: smarty_modifier_cdate

function smarty_modifier_cdate($string, $type)
{
    $system =& $GLOBALS['system'];
    if (!$string) {
        return 'NULL';
    } else {
        $time = intval($string) + ($GLOBALS['user_timezone'] - SERVER_TIMEZONE) * 3600;
    }
    switch ($type) {
        case 'FDATE':
            $dateFormat = 'Y-m-d';
            break;
        case 'SDATE':
            $dateFormat = 'y-m-d';
            break;
        case 'DATE':
            $dateFormat = 'm-d';
            break;
        case 'FDATE_FTIME':
            $dateFormat = 'Y-m-d H:i:s';
            break;
        case 'FDATE_STIME':
            $dateFormat = 'Y-m-d H:i';
            break;
        case 'SDATE_FTIME':
            $dateFormat = 'y-m-d H:i:s';
            break;
        case 'SDATE_STIME':
            $dateFormat = 'y-m-d H:i';
            break;
        case 'DATE_FTIME':
            $dateFormat = 'm-d H:i:s';
            break;
        case 'DATE_STIME':
            $dateFormat = 'm-d H:i';
            break;
        default:
            $dateFormat = $system->getConf('admin.dateFormat');
    }
    return mydate($dateFormat, $time);
}
开发者ID:dalinhuang,项目名称:shopexts,代码行数:41,代码来源:modifier.cdate.php


示例12: tpl_input_time

function tpl_input_time($params, $ctl)
{
    $params['type'] = 'time';
    $return = tpl_input_date($params, $ctl);
    if ($params['value']) {
        $hour = mydate('H', $params['value']);
        $minute = mydate('i', $params['value']);
    }
    $select = '&nbsp;&nbsp; <select name="_DTIME_[H][' . htmlspecialchars($params['name']) . ']">';
    for ($i = 0; $i < 24; $i++) {
        $tmpNum = str_pad($i, 2, '0', STR_PAD_LEFT);
        $select .= ($hour == $i ? '<option value="' . $tmpNum . '" selected="selected">' : '<option value="' . $tmpNum . '">') . $tmpNum . '</option>';
    }
    $select .= '</select> : <select name="_DTIME_[M][' . htmlspecialchars($params['name']) . ']">';
    for ($i = 0; $i < 60; $i++) {
        $tmpNum = str_pad($i, 2, '0', STR_PAD_LEFT);
        $select .= ($minute == $i ? '<option value="' . $tmpNum . '" selected="selected">' : '<option value="' . $tmpNum . '">') . $tmpNum . '</option>';
    }
    $select .= '</select>';
    return $return . $select;
}
开发者ID:noikiy,项目名称:MyShop,代码行数:21,代码来源:input.time.php


示例13: updateMessage

 function updateMessage()
 {
     $sqlString = "select message from sdb_orders\n            where order_id = '" . $this->orderId;
     $this->db->Query($sqlString);
     $this->db->next_record();
     $tmp_message = do_slash($this->db->f(message));
     if (!empty($tmp_message)) {
         $tmp_message .= "<br><br>";
     }
     $tmptime = mydate("Y-m-d H:i:s", mktime());
     $sqlString = "UPDATE sdb_orders SET message= '" . $tmp_message . $this->message . "<br> -- " . $tmptime . "',\n            userrecsts = 1, recsts = 5, feedbacktime = " . time() . "\n            WHERE order_id='" . $this->orderId . "'";
     return $this->db->exec($sqlString);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:13,代码来源:mdl.order.php


示例14: echo

        <input name="customer_name" style="width:190px" id="title" type="text" value="<?php echo ($search["customer_name"]); ?>">
        <span>不填则不限制</span>
      </dd>
    </dl>
	
    <dl class="lineD">
      <dt>借款金额:</dt>
      <dd>
      <select name="bj" id="bj" style="width:80px"  class="c_select"><option value="">--请选择--</option><?php foreach($bj as $key=>$v){ if($search["bj"]==$key && $search["bj"]!=""){ ?><option value="<?php echo ($key); ?>" selected="selected"><?php echo ($v); ?></option><?php }else{ ?><option value="<?php echo ($key); ?>"><?php echo ($v); ?></option><?php }} ?></select>
      <input name="money" id="money" style="width:100px" class="input" type="text" value="<?php echo ($search["money"]); ?>" >
        <span>不填则不限制</span>
      </dd>
    </dl>

	<dl class="lineD"><dt>借款时间(开始):</dt><dd><input onclick="WdatePicker({maxDate:'#F{$dp.$D(\'end_time\')||\'2020-10-01\'}',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,lang:'zh-cn'});" name="start_time" id="start_time"  class="input Wdate" type="text" value="<?php echo (mydate('Y-m-d H:i:s',$search["start_time"])); ?>"><span id="tip_start_time" class="tip">只选开始时间则查询从开始时间往后所有</span></dd></dl>
	<dl class="lineD"><dt>借款时间(结束):</dt><dd><input onclick="WdatePicker({minDate:'#F{$dp.$D(\'start_time\')}',maxDate:'2020-10-01',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,lang:'zh-cn'});" name="end_time" id="end_time"  class="input Wdate" type="text" value="<?php echo (mydate('Y-m-d H:i:s',$search["end_time"])); ?>"><span id="tip_end_time" class="tip">只选结束时间则查询从结束时间往前所有</span></dd></dl>

    <div class="page_btm">
      <input type="submit" class="btn_b" value="确定" />
    </div>
	</form>
  </div>
  </div>
<!--搜索/筛选会员-->

  <div class="Toolbar_inbox">
  	<div class="page right"><?php echo ($pagebar); ?></div>
    <a onclick="dosearch();" class="btn_a" href="javascript:void(0);"><span class="search_action">搜索/筛选借款</span></a>
  </div>
  
  <div class="list">
开发者ID:hutao1004,项目名称:yintt,代码行数:31,代码来源:134c399d7526a3388c74cce432cd1332.php


示例15: mydate

</head>
<body>
<script type="text/javascript" src="__ROOT__/Style/My97DatePicker/WdatePicker.js" language="javascript"></script>
<style type="text/css">
.tip{color:#F2F4F6}
</style>

<div class="so_main">
  <!--列表模块-->
<!--   <form name="sdf" id="sdf" action="__URL__/index" method="get">
  <div class="Toolbar_inbox">
    <span>从<input onclick="WdatePicker({maxDate:'#F{$dp.$D(\'end_time\')||\'2020-10-01\'}',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true});" name="start_time" id="start_time"  class="input Wdate" type="text" value="<?php 
echo mydate('Y-m-d H:i:s', $search["start_time"]);
?>
"><span id="tip_start_time" class="tip">只选开始时间则查询从开始时间往后所有</span>到<input onclick="WdatePicker({minDate:'#F{$dp.$D(\'start_time\')}',maxDate:'2020-10-01',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true});" name="end_time" id="end_time"  class="input Wdate" type="text" value="<?php 
echo mydate('Y-m-d H:i:s', $search["end_time"]);
?>
"><span id="tip_end_time" class="tip">只选结束时间则查询从结束时间往前所有</span></span>
    <a href="javascript:;" onclick="javascript:document.forms.sdf.submit();" class="btn_a"><span>统计</span></a></div>
</form> -->
<style type="text/css">
.ssx a{height:30px; line-height:30px}
.list td{border-right:1px solid #E3E6EB; width:30%}
.lx{width:100%; overflow:hidden; height:30px; line-height:30px}
.lx dt,.lx dd{float:left; width:40%}
.lx dt{text-align:right;}
.lx dd{text-align:left; text-indent:10px}
</style>
  <div class="list">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
开发者ID:GStepOne,项目名称:CI,代码行数:31,代码来源:081084a0a46f1ea5a1b0006356adb83e.php


示例16: smarty_function_input

function smarty_function_input($params, &$smarty)
{
    if (isset($params['attributes'])) {
        $params = $params['attributes'];
    }
    $params['style'] .= '';
    if (isset($params['width'])) {
        $params['style'] = 'width:' . $params['width'] . 'px;' . $params['style'];
        unset($params['width']);
    }
    $params['class'] = $params['class'] ? $params['class'] . ' _x_ipt' : '_x_ipt' . ' ' . $params['type'];
    $params['vtype'] = isset($params['vtype']) ? $params['vtype'] : $params['type'];
    if (isset($smarty->_tpl_vars['disabledElement']) && $smarty->_tpl_vars['disabledElement']) {
        $params['disabled'] = 'disabled';
    }
    if (substr($params['type'], 0, 4) == 'enum') {
        $params['type'] = $params['inputType'] ? $params['inputType'] : 'select';
        $params['vtype'] = $params['inputType'] ? $params['inputType'] : 'select';
    } elseif (substr($params['type'], 0, 7) != 'object:') {
        $params['type'] = $params['inputType'] ? $params['inputType'] : $params['type'];
        $params['vtype'] = $params['inputType'] ? $params['inputType'] : $params['type'];
    }
    if (substr($params['type'], 0, 7) == 'object:') {
        include 'objects.php';
        $aTmp = explode(':', $params['type']);
        $params['filter'] = $params['options'];
        //传递filter参数 added by Ever 20080701
        if (!$smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data']) {
            $mod =& $smarty->system->loadModel($objects[$aTmp[1]]);
            if ($aTmp[2]) {
                $params['data'] = $mod->{$aTmp}[2]();
                $smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data'] = $params['data'];
            }
        } else {
            $mod =& $smarty->system->loadModel($objects[$aTmp[1]]);
            $params['data'] = $smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data'];
        }
        return $mod->inputElement($params);
    } else {
        switch ($params['type']) {
            case 'text':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'password':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'search':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'date':
                if (!$params['id']) {
                    $domid = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                    $params['id'] = $domid;
                } else {
                    $domid = $params['id'];
                }
                if (is_int($params['value'])) {
                    $params['value'] = mydate('Y-m-d', $params['value']);
                }
                //            $params['value'] = mydate('Y-m-d',$params['value']);
                $params['type'] = 'text';
                return buildTag($params, 'input autocomplete="off"') . '<script>$("' . $domid . '").makeCalable();</script>';
                break;
            case 'color':
                if (!$params['id']) {
                    $domid = 'colorPicker_' . substr(md5(rand(0, time())), 0, 6);
                    $params['id'] = $domid;
                } else {
                    $domid = $params['id'];
                }
                if ($params['value'] == '') {
                    $params['value'] = 'default';
                    //          $params['style']='background-color:#ffffff;cursor:pointer';
                } else {
                    //        $params['style']='background-color:'.$params['value'].';cursor:pointer';
                }
                //           $params['readonly']='false';
                return buildTag($params, 'input autocomplete="off"') . ' <input type="button" id="c_' . $domid . '" style="width:22px;height:22px;background-color:' . $params['value'] . ';border:0px #ccc solid;cursor:pointer"/><script>
            new GoogColorPicker("c_' . $domid . '",{
               onSelect:function(hex,rgb,el){
                  $("' . $domid . '").set("value",hex);
                  el.setStyle("background-color",hex);
               }
            })</script>';
                break;
            case 'time':
                if (is_int($params['value'])) {
                    $params['value'] = mydate('Y-m-d H:i', $params['value']);
                }
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'file':
                if ($params['backend'] == 'public') {
                    if (!$GLOBALS['storager']) {
                        $system =& $GLOBALS['system'];
                        $GLOBALS['storager'] = $system->loadModel('system/storager');
                    }
                    $storager =& $GLOBALS['storager'];
                    $url = $storager->getUrl($params['value']);
                    $img = array('png' => 1, 'gif' => 1, 'jpg' => 1, 'jpeg' => 1);
//.........这里部分代码省略.........
开发者ID:dalinhuang,项目名称:shopexts,代码行数:101,代码来源:function.input.php


示例17: foreach

$xlist = NULL;
?>
</ul>
</div></div> </div>
<div class="float-right fb-home-box fb-home-boxP15 fb-home-w345">
<h4 class="fb-home-H4 clearfix"><span>发标公告<i class="fb-home-new"></i></span><a href="/p2p/index.php/home/help?fbgg/index.html" target="_blank" title="更多公告">更多&gt;</a></h4>
<ul class="fb-home-kxTrend">
<?php 
foreach ($noticeList['list'] as $kx => $vn) {
    ?>
<li>
<a style="width:90%;display:inline-block;vertical-align:middle;" href="<?php 
    echo $vn["arturl"];
    ?>
" date='<?php 
    echo mydate("Y-m-d", $vn["art_time"]);
    ?>
' target="_blank" title="<?php 
    echo $vn["title"];
    ?>
"><?php 
    echo cnsubstr($vn["title"], 20);
    ?>
</a>
</li>
<?php 
}
$noticeList = NULL;
?>
</ul>
</div>
开发者ID:kinglong366,项目名称:p2p,代码行数:31,代码来源:769e70f2e46f34ceb60619bbda5e4691.php


示例18: if

    <th class="line_l">提现手续费</th>
    <th class="line_l">提现状态</th>
    <th class="line_l">提现时间</th>
    <th class="line_l">处理时间</th>
    <th class="line_l">处理人</th>
  </tr>
  <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr overstyle='on' id="list_<?php echo ($vo["id"]); ?>">
        <td><input type="checkbox" name="checkbox" id="checkbox2" onclick="checkon(this)" value="<?php echo ($vo["id"]); ?>"></td>
        <td><?php echo ($vo["id"]); ?></td>
        <td><?php echo ($vo["mid"]); ?></td>
        <td><?php echo ($vo["user_name"]); ?></td>
        <td><?php echo (($vo["withdraw_money"])?($vo["withdraw_money"]):0); ?>元</td>
        <td><?php echo (($vo["withdraw_fee"])?($vo["withdraw_fee"]):0); ?>元</td>
        <td><?php echo ($status[$vo['withdraw_status']]); ?></td>
        <td><?php echo (mydate("Y-m-d H:i:s",$vo["add_time"])); ?></td>
        <td><?php echo (mydate("Y-m-d H:i:s",$vo["deal_time"])); ?></td>
        <td><?php echo ($vo["deal_user"]); ?></td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
  </table>

  </div>
  
  <div class="Toolbar_inbox">
  	<div class="page right"><?php echo ($pagebar); ?></div>
    <a onclick="dosearch();" class="btn_a" href="javascript:void(0);"><span class="search_action">搜索/筛选会员</span></a>
    <a class="btn_a" href="__GROUP__/capital_online/withdrawexport?<?php echo ($query); ?>"><span>将当前条件下数据导出为Excel</span></a>
  </div>
</div>
<script type="text/javascript">
function showurl(url,Title){
	ui.box.load(url, {title:Title});
开发者ID:hutao1004,项目名称:yintt,代码行数:31,代码来源:716fae40bb64d699518049f6f71df8db.php


示例19: die

</td><td><?php 
            print $_lang[TicketsTicketReplys];
            ?>
</td><td></td></tr>
	        <?php 
            $r = @mysql_query("select * from tickets where userid='" . $_SESSION["userId"] . "' {$status} and parentid=0 order by newforuser desc, id desc") or die("File: " . __FILE__ . "<BR>Line: " . __LINE__ . "<BR>MySQL Error: " . mysql_error());
            $cnt = 0;
            while ($rr = @mysql_fetch_object($r)) {
                getfont();
                $cnt++;
                $subj = $rr->subject;
                if ($rr->newforuser) {
                    $subj = "<b>{$subj}</b>";
                }
                $dt = mb_split(' ', $rr->dt);
                $dt = mydate($dt[0]);
                $replys = @mysql_query("select COUNT(*) as cnt from tickets where parentid='{$rr->id}'") or die("File: " . __FILE__ . "<BR>Line: " . __LINE__ . "<BR>MySQL Error: " . mysql_error());
                $replys = mysql_fetch_object($replys);
                $link = "?do={$do}&sub=view&id={$rr->id}";
                if ($ticketsUsersCanDelete) {
                    $delete = "<A class=rootlink href=?do={$do}&sub=delete&id={$rr->id} onclick=\"javascript: return confirm('" . $_lang[TicketsDeleteAlert] . "');\"><img src=./_rootimages/del.gif border=0 alt='" . $_lang[TicketsDelete] . "'></a><BR>";
                } else {
                    $delete = '';
                }
                $close = "<A class=rootlink href=?do={$do}&sub=close&id={$rr->id} onclick=\"javascript: return confirm('" . $_lang[TicketsCloseAlert] . "');\"><img src=./_rootimages/close.gif border=0 alt='" . $_lang[TicketsClose] . "'></a>";
                ?>
			<tr class="<?php 
                print $font_row;
                ?>
" height=30>
			<td valign=middle>&nbsp;<?php 
开发者ID:AlMo0,项目名称:methodic.loc,代码行数:31,代码来源:test.php


示例20: to_url

echo "<div class=\"normal\">\n";
echo "<h2";
if ($is_public == 'f') {
    echo ' class="faded"';
}
echo ">{$name}";
echo "</h2>\n";
// build edit / delete person string
$ep = to_url('./forms/person_update.php', array('person' => $person), $_Edit_person, "{$_Edit} {$_person} {$person}");
// if this person is unconnected and "has" no events, display delete hotlink
// see note in person_delete.php
if (get_connection_count($person) == 0) {
    $ep .= ' / ' . to_url('./forms/person_delete.php', array('person' => $person), $_Delete_person);
}
// print person vitae
echo para("{$_ID}: {$person}, " . $_Gender . ': ' . gname($gender) . '<br />' . "{$_last_edited}  " . mydate($last_edited) . conc(span_type(paren($ep), "hotlink")));
show_parent($person, 1);
// father
show_parent($person, 2);
// mother
// print annotated events
echo "<h3>{$_Events}</h3>\n";
$handle = pg_query("\n    SELECT\n        event_number,\n        event_type_number,\n        event_date,\n        event_place,\n        event_note\n    FROM\n        person_events\n    WHERE\n        person = {$person}\n");
while ($row = pg_fetch_assoc($handle)) {
    $event_string = '';
    $head = '<p>';
    $principal = 1;
    // show 'edit / delete' hotlink by default
    $fade = 0;
    // display "secondary" events as faded
    $event = $row['event_number'];
开发者ID:AlexSnet,项目名称:yggdrasil-genealogy,代码行数:31,代码来源:family.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP mydie函数代码示例发布时间:2022-05-15
下一篇:
PHP mycred_update_user_meta函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap