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


PHP Format::db_date方法代码示例

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


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

示例1:

            ?>
"><?php 
            echo $row['users'];
            ?>
</a>
                    <?php 
        } else {
            ?>
 0
                    <?php 
        }
        ?>
                    &nbsp;
                </td>
                <td><?php 
        echo Format::db_date($row['created']);
        ?>
&nbsp;</td>
                <td><?php 
        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
            </tr>
            <?php 
    }
    //end of while.
}
?>
    <tfoot>
     <tr>
        <td colspan="7">
开发者ID:nicolap,项目名称:osTicket-1.7,代码行数:31,代码来源:groups.inc.php

示例2: sprintf

                 value="<?php echo $row['id']; ?>" <?php echo $sel?'checked="checked"':''; ?> >
             </td>
             <td>&nbsp;
                 <a class="userPreview"
                     href="users.php?id=<?php echo $row['id']; ?>"><?php
                     echo Format::htmlchars($name); ?></a>
                 &nbsp;
                 <?php
                 if ($row['tickets'])
                      echo sprintf('<i class="icon-fixed-width icon-file-text-alt"></i>
                          <small>(%d)</small>', $row['tickets']);
                 ?>
             </td>
             <td><?php echo Format::htmlchars($row['email']); ?></td>
             <td><?php echo $status; ?></td>
             <td><?php echo Format::db_date($row['created']); ?></td>
            </tr>
         <?php
         } //end of while.
     endif; ?>
 </tbody>
 <tfoot>
  <tr>
     <td colspan="5">
         <?php
         if ($res && $num) {
             ?>
         <?php echo __('Select'); ?>:&nbsp;
         <a id="selectAll" href="#ckb"><?php echo __('All'); ?></a>&nbsp;&nbsp;
         <a id="selectNone" href="#ckb"><?php echo __('None'); ?></a>&nbsp;&nbsp;
         <a id="selectToggle" href="#ckb"><?php echo __('Toggle'); ?></a>&nbsp;&nbsp;
开发者ID:CarlosAvilesMx,项目名称:CarlosAviles.Mx,代码行数:31,代码来源:users.tmpl.php

示例3:

        ?>
</a>
                    &nbsp;<?php 
        echo $row['attachments'] ? "<span class='Icon file'>&nbsp;</span>" : '';
        ?>
</td>
                <td nowrap>&nbsp;<?php 
        echo Format::truncate($dept, 30);
        ?>
</td>
                <td>&nbsp;<?php 
        echo Format::truncate($row['email'], 40);
        ?>
</td>
		<td>&nbsp;<?php 
        echo Format::db_date($row['duedate'], 40);
        ?>
</td>
            </tr>
            <?php 
        $class = $class == 'row2' ? 'row1' : 'row2';
    }
    //end of while.
} else {
    //not tickets found!!
    ?>
 
            <tr class="<?php 
    echo $class;
    ?>
"><td colspan=7><b>NO tickets found.</b></td></tr>
开发者ID:kumarsivarajan,项目名称:ctrl-dock,代码行数:31,代码来源:tickets.inc.php

示例4: sprintf

  <h2>Frequently Asked Questions</h2>
</div>
<div style="float:right;text-align:right;padding-top:5px;padding-right:5px;">&nbsp;</div>
<div class="clear"></div>
<br>
<div>
    <strong><?php 
echo $category->getName();
?>
</strong>
    <span>(<?php 
echo $category->isPublic() ? 'Public' : 'Internal';
?>
)</span>
    <time>Last updated <?php 
echo Format::db_date($category->getUpdateDate());
?>
</time>
</div>
<div class="cat-desc">
<?php 
echo Format::display($category->getDescription());
?>
</div>
<?php 
if ($thisstaff->canManageFAQ()) {
    echo sprintf('<div class="cat-manage-bar"><a href="categories.php?id=%d" class="Icon editCategory">Edit Category</a>
             <a href="categories.php" class="Icon deleteCategory">Delete Category</a>
             <a href="faq.php?cid=%d&a=add" class="Icon newFAQ">Add New FAQ</a></div>', $category->getId(), $category->getId());
} else {
    ?>
开发者ID:ed00m,项目名称:osTicket-1.8,代码行数:31,代码来源:faq-category.inc.php

示例5:

          $subject = Format::truncate($row['subject'],40);
          if(!strcasecmp($row['status'],'open') && !$row['isanswered'] && !$row['lock_id']) {
              $tid=sprintf('<b>%s</b>',$tid);
              //$subject=sprintf('<b>%s</b>',Format::truncate($row['subject'],40)); // Making the subject bold is too much for the eye
          }
          ?>
      <tr class="<?=$class?> " id="<?=$row['ticket_id']?>">
          <?if($canDelete || $canClose) {?>
          <td align="center" class="nohover">
              <input type="checkbox" name="tids[]" value="<?=$row['ticket_id']?>" onClick="highLight(this.value,this.checked);">
          </td>
          <?}?>
          <td align="center" title="<?=$row['email']?>" nowrap>
            <a class="Icon <?=strtolower($row['source'])?>Ticket" title="<?=$row['source']?> Ticket: <?=$row['email']?>" 
              href="tickets.php?id=<?=$row['ticket_id']?>"><?=$tid?></a></td>
          <td align="center" nowrap><?=Format::db_date($row['created'])?></td>
          <td><a <?if($flag) { ?> class="Icon <?=$flag?>Ticket" title="<?=ucfirst($flag)?> Ticket" <?}?> 
              href="tickets.php?id=<?=$row['ticket_id']?>"><?=$subject?></a>
              &nbsp;<?=$row['attachments']?"<span class='Icon file'>&nbsp;</span>":''?></td>
          <td nowrap><?=Format::truncate($row['dept_name'],30)?></td>
          <td class="nohover" align="center" style="background-color:<?=$row['priority_color']?>;"><?=$row['priority_desc']?></td>
          <td nowrap><?=Format::truncate($row['name'],22,strpos($row['name'],'@'))?>&nbsp;</td>
      </tr>
      <?
      $class = ($class =='row2') ?'row1':'row2';
      } //end of while.
  else: //not tickets found!! ?> 
      <tr class="<?=$class?>"><td colspan=8><b>Query returned 0 results.</b></td></tr>
  <?
  endif; ?>
 </table>
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:tickets.inc.php

示例6: _

        ?>
</a>&nbsp;</td>
                <td><?php 
        echo Format::htmlchars($name);
        ?>
&nbsp;</td>
                <td><?php 
        echo $row['client_organization'];
        ?>
</td>
                <td><?php 
        echo $row['client_isactive'] ? _('Active') : '<b>' . _('Locked') . '</b>';
        ?>
</td>
                <td><?php 
        echo Format::db_date($row['client_created']);
        ?>
</td>
                <td><?php 
        echo Format::db_datetime($row['client_lastlogin']);
        ?>
&nbsp;</td>
            </tr>
            <?php 
        $class = $class == 'row2' ? 'row1' : 'row2';
    }
    //end of while.
} else {
    ?>
 
          <tr class="<?php 
开发者ID:jahanzaibbahadur,项目名称:Katak-support,代码行数:31,代码来源:clientmembers.inc.php

示例7: _

        ?>
"><?php 
        echo $ticketID;
        ?>
</a></td>
        <td align="center" nowrap><?php 
        echo Format::db_date($row['created']);
        ?>
</td>
              
        <td align="center">
          <?php 
        if ($row['status'] == 'closed') {
            echo "<span class='Icon closedTicket' title='" . _('Closed on ') . Format::db_date($row['closed']) . "'>&nbsp;</span>";
        } elseif ($row['isanswered'] && !strcasecmp($row['status'], 'open')) {
            echo "<span class='Icon answeredTicket' title='" . _('Open - Answered on ') . Format::db_date($row['lastresponse']) . "'>&nbsp;</span>";
        } else {
            echo "<span class='Icon openTicket' title=" . _('Open') . ">&nbsp;</span>";
        }
        ?>
        </td>
        <td nowrap>&nbsp;<?php 
        echo Format::truncate($dept, 30);
        ?>
</td>
        <td>
          &nbsp;<a href="tickets.php?id=<?php 
        echo $row['ticketID'];
        ?>
"><?php 
        echo $subject;
开发者ID:jahanzaibbahadur,项目名称:Katak-support,代码行数:31,代码来源:tickets.inc.php

示例8:

             $sel=false;
             if(($uids && in_array($row['staff_id'],$uids)) or ($uID && $uID==$row['staff_id'])){
                 $class="$class highlight";
                 $sel=true;
             }
             $name=ucfirst($row['firstname'].' '.$row['lastname']);
             ?>
         <tr class="<?=$class?>" id="<?=$row['staff_id']?>">
             <td width=7px>
               <input type="checkbox" name="uids[]" value="<?=$row['staff_id']?>" <?=$sel?'checked':''?>  onClick="highLight(this.value,this.checked);">
             <td><a href="admin.php?t=staff&id=<?=$row['staff_id']?>"><?=Format::htmlchars($name)?></a>&nbsp;</td>
             <td><?=$row['username']?></td>
             <td><?=$row['isactive']?'Active':'<b>Locked</b>'?>&nbsp;<?=$row['onvacation']?'(<i>vacation</i>)':''?></td>
             <td><a href="admin.php?t=grp&id=<?=$row['group_id']?>"><?=Format::htmlchars($row['group_name'])?></a></td>
             <td><a href="admin.php?t=dept&id=<?=$row['dept_id']?>"><?=Format::htmlchars($row['dept_name'])?></a></td>
             <td><?=Format::db_date($row['created'])?></td>
             <td><?=Format::db_datetime($row['lastlogin'])?>&nbsp;</td>
         </tr>
         <?
         $class = ($class =='row2') ?'row1':'row2';
         } //end of while.
     else: ?> 
         <tr class="<?=$class?>"><td colspan=8><b>Query returned 0 results</b></td></tr>
     <?
     endif; ?>
  </table>
 </td></tr>
 <?
 if(db_num_rows($users)>0): //Show options..
  ?>
 <tr><td>
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:staffmembers.inc.php

示例9: while

     if($tickets_res && ($num=db_num_rows($tickets_res))):
         $defaultDept=Dept::getDefaultDeptName();
         while ($row = db_fetch_array($tickets_res)) {
             $dept=$row['ispublic']?$row['dept_name']:$defaultDept; //Don't show hidden/non-public depts.
             $subject=Format::htmlchars(Format::truncate($row['subject'],40));
             $ticketID=$row['ticketID'];
             if($row['isanswered'] && !strcasecmp($row['status'],'open')) {
                 $subject="<b>$subject</b>";
                 $ticketID="<b>$ticketID</b>";
             }
             ?>
         <tr class="<?=$class?> " id="<?=$row['ticketID']?>">
             <td align="center" title="<?=$row['email']?>" nowrap>
                 <a class="Icon <?=strtolower($row['source'])?>Ticket" title="<?=$row['email']?>" href="view.php?id=<?=$row['ticketID']?>">
                     <?=$ticketID?></a></td>
             <td nowrap>&nbsp;<?=Format::db_date($row['created'])?></td>
             <td>&nbsp;<?=ucfirst($row['status'])?></td>
             <td>&nbsp;<a href="view.php?id=<?=$row['ticketID']?>"><?=$subject?></a>
                 &nbsp;<?=$row['attachments']?"<span class='Icon file'>&nbsp;</span>":''?></td>
             <td nowrap>&nbsp;<?=Format::truncate($dept,30)?></td>
             <td>&nbsp;<?=Format::truncate($row['email'],40)?></td>
         </tr>
         <?
         $class = ($class =='row2') ?'row1':'row2';
         } //end of while.
     else: //not tickets found!! ?> 
         <tr class="<?=$class?>"><td colspan=7><b>NO tickets found.</b></td></tr>
     <?
     endif; ?>
  </table>
 </td></tr>
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:tickets.inc.php


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