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


PHP Format::db_daydatetime方法代码示例

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


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

示例1: log

 function log($id)
 {
     if ($id && ($log = Log::lookup($id))) {
         $content = sprintf('<div style="width:500px;">&nbsp;<strong>%s</strong><br><p>%s</p>
                 <hr><strong>Log Date:</strong> <em>%s</em> <strong>IP Address:</strong> <em>%s</em></div>', $log->getTitle(), Format::display(str_replace(',', ', ', $log->getText())), Format::db_daydatetime($log->getCreateDate()), $log->getIP());
     } else {
         $content = '<div style="width:295px;">&nbsp;<strong>Error:</strong>Unknown or invalid log ID</div>';
     }
     return $content;
 }
开发者ID:nunomartins,项目名称:osTicket-1.7,代码行数:10,代码来源:ajax.content.php

示例2: log

 function log($id)
 {
     if ($id && ($log = Log::lookup($id))) {
         $content = sprintf('<div
                 style="width:500px;">&nbsp;<strong>%s</strong><br><p
                 style="white-space:pre-line;">%s</p>
                 <hr><strong>%s:</strong> <em>%s</em> <strong>%s:</strong> <em>%s</em></div>', $log->getTitle(), Format::display(str_replace(',', ', ', $log->getText())), __('Log Date'), Format::db_daydatetime($log->getCreateDate()), __('IP Address'), $log->getIP());
     } else {
         $content = '<div style="width:295px;">&nbsp;<strong>' . __('Error') . ':</strong>' . sprintf(__('%s: Unknown or invalid ID.'), __('log entry')) . '</div>';
     }
     return $content;
 }
开发者ID:gizur,项目名称:osticket,代码行数:12,代码来源:ajax.content.php

示例3: faq

 function faq($id, $format = 'html')
 {
     //XXX: user ajax->getThisStaff() (nolint)
     global $thisstaff;
     include_once INCLUDE_DIR . 'class.faq.php';
     if (!($faq = FAQ::lookup($id))) {
         return null;
     }
     //TODO: $fag->getJSON() for json format. (nolint)
     $resp = sprintf('<div style="width:650px;">
              <strong>%s</strong><p>%s</p>
              <div class="faded">Last updated %s</div>
              <hr>
              <a href="faq.php?id=%d">View</a> | <a href="faq.php?id=%d">Attachments (%s)</a>', $faq->getQuestion(), Format::safe_html($faq->getAnswer()), Format::db_daydatetime($faq->getUpdateDate()), $faq->getId(), $faq->getId(), $faq->getNumAttachments());
     if ($thisstaff && $thisstaff->canManageFAQ()) {
         $resp .= sprintf(' | <a href="faq.php?id=%d&a=edit">Edit</a>', $faq->getId());
     }
     $resp .= '</div>';
     return $resp;
 }
开发者ID:pkdevboxy,项目名称:osTicket-1.7,代码行数:20,代码来源:ajax.kbase.php

示例4: echo

if(!defined('OSTCLIENTINC') || !$faq  || !$faq->isPublished()) die('Access Denied');

$category=$faq->getCategory();

?>
<h1>Frequently Asked Questions</h1>
<div id="breadcrumbs">
    <a href="index.php">All Categories</a> 
    &raquo; <a href="faq.php?cid=<? echo $category->getId(); ?>"><? echo $category->getName(); ?></a>
</div>
<div style="width:700;padding-top:2px; float:left;">
<strong style="font-size:16px;"><?php echo $faq->getQuestion() ?></strong>
</div>
<div style="float:right;text-align:right;padding-top:5px;padding-right:5px;"></div>
<div class="clear"></div>
<p>
<?php echo Format::safe_html($faq->getAnswer()); ?>
</p>
<p>
<?php
if($faq->getNumAttachments()) { ?>
 <div><span class="faded"><b>Attachments:</b></span>  <?php echo $faq->getAttachmentsLinks(); ?></div>
<?
}?>
<div><span class="faded"><b>Help Topics:</b></span> 
    <?php echo ($topics=$faq->getHelpTopics())?implode(', ',$topics):' '; ?>
</div>
</p>
<hr>
<div class="faded">&nbsp;Last updated <?php echo Format::db_daydatetime($category->getUpdateDate()); ?></div>
开发者ID:nicolap,项目名称:osTicket-1.7,代码行数:30,代码来源:faq.inc.php

示例5: db_input

    ?>
</td></tr>
		    </table>
            <?php 
    //get answers for messages
    $sql = 'SELECT resp.*,count(attach_id) as attachments FROM ' . TICKET_RESPONSE_TABLE . ' resp ' . ' LEFT JOIN ' . TICKET_ATTACHMENT_TABLE . ' attach ON  resp.ticket_id=attach.ticket_id AND resp.response_id=attach.ref_id AND ref_type=\'R\' ' . ' WHERE msg_id=' . db_input($msg_row['msg_id']) . ' AND resp.ticket_id=' . db_input($ticket->getId()) . ' GROUP BY resp.response_id ORDER BY created';
    //echo $sql;
    $resp = db_query($sql);
    while ($resp_row = db_fetch_array($resp)) {
        $respID = $resp_row['response_id'];
        $name = $cfg->hideStaffName() ? 'staff' : Format::htmlchars($resp_row['staff_name']);
        ?>
    		    <table align="center" class="response" cellspacing="0" cellpadding="1" width="100%" border=0>
    		        <tr>
    			        <th><?php 
        echo Format::db_daydatetime($resp_row['created']);
        ?>
&nbsp;-&nbsp;<?php 
        echo $name;
        ?>
</th></tr>
                    <?php 
        if ($resp_row['attachments'] > 0) {
            ?>
                    <tr class="header">
                        <td><?php 
            echo $ticket->getAttachmentStr($respID, 'R');
            ?>
</td></tr>
                                    
                    <?php 
开发者ID:kumarsivarajan,项目名称:ctrl-dock,代码行数:31,代码来源:viewticket.inc.php

示例6: is_array

 <?php
     $total=0;
     $ids=($errors && is_array($_POST['ids']))?$_POST['ids']:null;
     if($res && db_num_rows($res)):
         while ($row = db_fetch_array($res)) {
             $sel=false;
             if($ids && in_array($row['log_id'],$ids))
                 $sel=true;
             ?>
         <tr id="<?php echo $row['log_id']; ?>">
             <td width=7px>
               <input type="checkbox" class="ckb" name="ids[]" value="<?php echo $row['log_id']; ?>"
                         <?php echo $sel?'checked="checked"':''; ?>> </td>
             <td>&nbsp;<a class="tip" href="#log/<?php echo $row['log_id']; ?>"><?php echo Format::htmlchars($row['title']); ?></a></td>
             <td><?php echo $row['log_type']; ?></td>
             <td>&nbsp;<?php echo Format::db_daydatetime($row['created']); ?></td>
             <td><?php echo $row['ip_address']; ?></td>
         </tr>
         <?php
         } //end of while.
     endif; ?>
 </tbody>
 <tfoot>
  <tr>
     <td colspan="6">
         <?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;
         <?php }else{
开发者ID:KingsleyGU,项目名称:osticket,代码行数:31,代码来源:syslogs.inc.php

示例7: echo

<div style="float:right;text-align:right;padding-top:5px;padding-right:5px;"></div>
<div class="clear"></div>
<p>
<?php 
echo Format::safe_html($faq->getAnswer());
?>
</p>
<p>
<?php 
if ($faq->getNumAttachments()) {
    ?>
 <div><span class="faded"><b>Attachments:</b></span>  <?php 
    echo $faq->getAttachmentsLinks();
    ?>
</div>
<?php 
}
?>

<div class="article-meta"><span class="faded"><b>Help Topics:</b></span>
    <?php 
echo ($topics = $faq->getHelpTopics()) ? implode(', ', $topics) : ' ';
?>
</div>
</p>
<hr>
<div class="faded">&nbsp;Last updated <?php 
echo Format::db_daydatetime($category->getUpdateDate());
?>
</div>
开发者ID:nunomartins,项目名称:osTicket-1.7,代码行数:30,代码来源:faq.inc.php

示例8: replaceTemplateVars

 function replaceTemplateVars($text)
 {
     global $cfg;
     $dept = $this->getDept();
     $staff = $this->getStaff();
     $search = array('/%id/', '/%ticket/', '/%email/', '/%name/', '/%subject/', '/%topic/', '/%phone/', '/%status/', '/%priority/', '/%dept/', '/%assigned_staff/', '/%createdate/', '/%duedate/', '/%closedate/', '/%url/');
     $replace = array($this->getId(), $this->getExtId(), $this->getEmail(), $this->getName(), $this->getSubject(), $this->getHelpTopic(), $this->getPhoneNumber(), $this->getStatus(), $this->getPriority(), $dept ? $dept->getName() : '', $staff ? $staff->getName() : '', Format::db_daydatetime($this->getCreateDate()), Format::db_daydatetime($this->getDueDate()), Format::db_daydatetime($this->getCloseDate()), $cfg->getBaseUrl());
     return preg_replace($search, $replace, $text);
 }
开发者ID:supaket,项目名称:helpdesk,代码行数:9,代码来源:class.ticket.php

示例9: __

</p>
<p>
<?php 
if ($faq->getNumAttachments()) {
    ?>
 <div><span class="faded"><b><?php 
    echo __('Attachments');
    ?>
:</b></span>  <?php 
    echo $faq->getAttachmentsLinks();
    ?>
</div>
<?php 
}
?>

<div class="article-meta"><span class="faded"><b><?php 
echo __('Help Topics');
?>
:</b></span>
    <?php 
echo ($topics = $faq->getHelpTopics()) ? implode(', ', $topics) : ' ';
?>
</div>
</p>
<hr>
<div class="faded">&nbsp;<?php 
echo __('Last updated') . ' ' . Format::db_daydatetime($category->getUpdateDate());
?>
</div>
开发者ID:CarlosAvilesMx,项目名称:CarlosAviles.Mx,代码行数:30,代码来源:faq.inc.php

示例10: _

  <input type="hidden" name="id" value="<?php 
echo $template->getId();
?>
">
  <table width="100%" border="0" cellspacing=0 cellpadding=0>
    <tr><td>
        <table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform tpl">
            <tr class="header"><td colspan=2 ><?php 
echo _('Template Info');
?>
</td></tr>
            <tr class="subheader"><td colspan=2><b><?php 
echo _('Last updated on');
?>
 <?php 
echo Format::db_daydatetime($template->getUpdateDate());
?>
</b></td></tr>
            <tr>
                <th><?php 
echo _('Name');
?>
</th>
                <td>
                    <input type="text" size="45" name="name" value="<?php 
echo $tpl['name'];
?>
">
                            &nbsp;<font class="error">*&nbsp;<?php 
echo $errors['name'];
?>
开发者ID:jahanzaibbahadur,项目名称:Katak-support,代码行数:31,代码来源:template.inc.php

示例11: while

                <tr class="header"><td><?=$ticket->getAttachmentStr($msg_row['msg_id'],'M')?></td></tr> 
                <?}?>
                <tr><td><?=Format::display($msg_row['message'])?>&nbsp;</td></tr>
		    </table>
            <?
            //get answers for messages
            $sql='SELECT resp.*,count(attach_id) as attachments FROM '.TICKET_RESPONSE_TABLE.' resp '.
                ' LEFT JOIN '.TICKET_ATTACHMENT_TABLE." attach ON  resp.ticket_id=attach.ticket_id AND resp.response_id=attach.ref_id AND ref_type='R' ".
                ' WHERE msg_id='.db_input($msg_row['msg_id']).' AND resp.ticket_id='.db_input($id).
                ' GROUP BY resp.response_id ORDER BY created';
		    $resp =db_query($sql);
		    while ($resp_row = db_fetch_array($resp)) {
                $respID=$resp_row['response_id'];
                ?>
    		    <table align="center" class="response" cellspacing="0" cellpadding="1" width="100%" border=0>
    		        <tr><th><?=Format::db_daydatetime($resp_row['created'])?>&nbsp;-&nbsp;<?=$resp_row['staff_name']?></th></tr>
                    <?if($resp_row['attachments']>0){ ?>
                    <tr class="header">
                        <td><?=$ticket->getAttachmentStr($respID,'R')?></td></tr>
                    <?}?>
			        <tr><td> <?=Format::display($resp_row['response'])?></td></tr>
		        </table>
	        <?}
            $msgid =$msg_row['msg_id'];
	    }?>
    </div>
</div>
<table align="center" cellspacing="0" cellpadding="3" width="90%" border=0>
  <?if($_POST['a']!='process') {?>
  <tr> <td align="center">
     <?if($errors['err']) {?>
开发者ID:razagilani,项目名称:Os-Ticketing-System,代码行数:31,代码来源:viewticket.inc.php

示例12: echo

?>
</div>
<div class="clear"></div>
<p>
 <div><span class="faded"><b>Attachments:</b></span> <?php 
echo $faq->getAttachmentsLinks();
?>
</div>
 <div><span class="faded"><b>Help Topics:</b></span>
    <?php 
echo ($topics = $faq->getHelpTopics()) ? implode(', ', $topics) : ' ';
?>
    </div>
</p>
<div class="faded">&nbsp;Last updated <?php 
echo Format::db_daydatetime($faq->getUpdateDate());
?>
</div>
<hr>
<?php 
if ($thisstaff->canManageFAQ()) {
    //TODO: add js confirmation....
    ?>
   <div>
    <form action="faq.php?id=<?php 
    echo $faq->getId();
    ?>
" method="post">
	 <?php 
    csrf_token();
    ?>
开发者ID:ed00m,项目名称:osTicket-1.8,代码行数:31,代码来源:faq-view.inc.php

示例13: __

}
?>
&nbsp;
</div>
<div class="clear"></div>
<div class="thread-body">
<?php echo $faq->getAnswerWithImages(); ?>
</div>
<div class="clear"></div>
<p>
 <div><span class="faded"><b><?php echo __('Attachments');?>:</b></span> <?php echo $faq->getAttachmentsLinks(); ?></div>
 <div><span class="faded"><b><?php echo __('Help Topics');?>:</b></span>
    <?php echo ($topics=$faq->getHelpTopics())?implode(', ',$topics):' '; ?>
    </div>
</p>
<div class="faded">&nbsp;<?php echo __('Last updated');?> <?php echo Format::db_daydatetime($faq->getUpdateDate()); ?></div>
<hr>
<?php
if($thisstaff->canManageFAQ()) {
    //TODO: add js confirmation....
    ?>
   <div>
    <form action="faq.php?id=<?php echo  $faq->getId(); ?>" method="post">
	 <?php csrf_token(); ?>
        <input type="hidden" name="id" value="<?php echo  $faq->getId(); ?>">
        <input type="hidden" name="do" value="manage-faq">
        <div>
            <strong><?php echo __('Options');?>: </strong>
            <select name="a" style="width:200px;">
                <option value=""><?php echo __('Select Action');?></option>
                <?php
开发者ID:KingsleyGU,项目名称:osticket,代码行数:31,代码来源:faq-view.inc.php

示例14: elseif

              <?php 
            echo $ticket->getAttachmentStr($msg_row['msg_id'], 'M');
            ?>
          <?php 
        }
        ?>
      </div>
     <?php 
    } elseif ($msg_row['msg_type'] == 'R') {
        //get answers for messages
        $respID = $resp_row['response_id'];
        $name = $cfg->hideStaffName() ? 'staff' : Format::htmlchars($msg_row['staff_name']);
        ?>
        <div class="responselabel">
            <span class="Icon inMessage">&nbsp;<?php 
        echo Format::db_daydatetime($msg_row['created']);
        ?>
&nbsp;-&nbsp;<?php 
        echo $name;
        ?>
</span>
            </div>
            <div class="message">
                  <?php 
        echo Format::display($msg_row['message']);
        ?>
        </div>
            <div class="attachment">
                <?php 
        if ($msg_row['attachments'] > 0) {
            ?>
开发者ID:jahanzaibbahadur,项目名称:Katak-support,代码行数:31,代码来源:viewticket.inc.php

示例15: while

		    </table>
            <?
            //get answers for messages
            $sql='SELECT resp.*,count(attach_id) as attachments FROM '.TICKET_RESPONSE_TABLE.' resp '.
                ' LEFT JOIN '.TICKET_ATTACHMENT_TABLE.' attach ON  resp.ticket_id=attach.ticket_id AND resp.response_id=attach.ref_id AND ref_type=\'R\' '.
                ' WHERE msg_id='.db_input($msg_row['msg_id']).' AND resp.ticket_id='.db_input($ticket->getId()).
                ' GROUP BY resp.response_id ORDER BY created';
            //echo $sql;
		    $resp =db_query($sql);
		    while ($resp_row = db_fetch_array($resp)) {
                $respID=$resp_row['response_id'];
                $name=$cfg->hideStaffName()?'staff':Format::htmlchars($resp_row['staff_name']);
                ?>
    		    <table align="center" class="response" cellspacing="0" cellpadding="1" width="100%" border=0>
    		        <tr>
    			        <th><?=Format::db_daydatetime($resp_row['created'])?>&nbsp;-&nbsp;<?=$name?></th></tr>
                    <?if($resp_row['attachments']>0){ ?>
                    <tr class="header">
                        <td><?=$ticket->getAttachmentStr($respID,'R')?></td></tr>
                                    
                    <?}?>
			        <tr class="info">
				        <td> <?=Format::display($resp_row['response'])?></td></tr>
		        </table>
		    <?
		    } //endwhile...response loop.
            $msgid =$msg_row['msg_id'];
        endwhile; //message loop.
     ?>
    </div>
</div>
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:viewticket.inc.php


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