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


PHP GetTimeStamp函数代码示例

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


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

示例1: array

          <tr>
            <td valign="top">
            
            <div id="searchresults">
            <?php 
#$page_list = array();
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n           \t<td class='listheader' nowrap>Student</td>\r\r\n\t\t\t<td class='listheader' nowrap>Student No</td>\r\r\n           \t<td class='listheader' nowrap>Age</td>\r\r\n\t\t\t<td class='listheader' nowrap>Current Class</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        #Get the current class details
        $current_class = current_class($this, $row['id']);
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        echo " &nbsp;&nbsp; <a href='" . base_url() . "students/load_registration_form/s/" . encryptValue($row['id']) . "' title=\"Click to register " . $row['firstname'] . ".\">Register student</a>";
        echo "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['studentno'] . "</td>\r\r\n\t\t<td valign='top' nowrap>" . number_format(get_date_diff($row['dob'], date('m/d/Y h:i:s a', time()), 'days') / 365, 0) . "</td>" . "<td valign='top' nowrap>" . $current_class['class'] . ", " . $current_class['term'] . " [" . $current_class['year'] . "]</td>\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "students/manage_student_register/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No student admissions have been made.</div";
}
?>

            
            </div>
            </td>
            </tr>
          
        </table>
    </div>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:register_students_view.php

示例2: get_row_color

            $total_credit += $row['amount'];
        }
        #total credit
        if ($row['cr_dr'] == 'DR') {
            $total_debit += $row['amount'];
        }
        $balance = $total_credit - $total_debit;
        #Show one row at a time
        echo "<tr class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n    <td class='leftListCell rightListCell' valign='top' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "finances/delete_transaction/i/" . encryptValue($row['transid']) . "', 'Are you sure you want to remove this fee? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this fee.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a href='" . base_url() . "finances/load_transaction_form/i/" . encryptValue($row['transid']) . "' title=\"Click to edit this fee details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n            <td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n            <td valign='top'>" . $account_info['title'] . "</td>\r\r\n            <td valign='top'>" . $row['particulars'] . "</td>\t\t\t\t\r\r\n            <td valign='top' class='number_format' align='right' nowrap>" . ($row['cr_dr'] == 'DR' ? number_format($row['amount'], 0, '.', ',') : '') . "</td>\t\t\r\r\n            <td valign='top' class='number_format' align='right' nowrap>" . ($row['cr_dr'] == 'CR' ? number_format($row['amount'], 0, '.', ',') : '') . "</td>\r\r\n            <td class='rightListCell number_format' valign='top' align='right' nowrap>" . number_format($balance, 0, '.', ',') . "</td>\t\t\r\r\n        </tr>";
        $counter++;
    }
    echo "<tr>\r\r\n<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "finances/manage_petty_cash_book/p/%d") . "</td>\r\r\n</tr>\r\r\n</table>";
} else {
    echo "<div>No transactions have been added.</div>";
}
?>

        
        
        </td>
        </tr>
      
    </table>
</div>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:manage_petty_cash_book.php

示例3: number_format

        echo number_format($row['BidAmount']);
        ?>
</td>
            <td align="left"><a title="<b><u>FULL BID DETAILS</u></b><br/><?php 
        echo $row['Details'];
        ?>
" href="#"><?php 
        echo substr(nl2br(strip_tags($row['Details'])), 0, 30) . '.....';
        ?>
</a></td>
            <td align="center"><a href="companybids/receipts/<?php 
        echo $row['Receipt'];
        ?>
" title="Download receipt?" target="_blank"><img src="thumb.php?src=companybids/receipts/receipt2.jpg&w=30&h=30&zc=1&q=100" width="30"/></a></td>
            <td align="center"><?php 
        echo date("D, j M, Y", GetTimeStamp($row['DateIn']));
        ?>
</td>
            <?php 
        if (isset($bidclosed)) {
            ?>
                	<td align="center"><a title="<b><u>RESPONSE / COMMENT</u></b><br/><?php 
            echo $row['Response'];
            ?>
" href="#"><B><?php 
            echo $row['BidWinner'];
            ?>
</B></a></td> 
            <?php 
        }
        ?>
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:viewjobbids.php

示例4: foreach

              <td>
<div id="searchresults">
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Returned</td>\r\r\n\t\t\t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>Serial Number</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #check expiry of rental period
        $currentdate = date("Y-m-d H:i:s");
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t\t<td valign='top' nowrap>";
        if (1) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "library/delete_return/i/" . encryptValue($row['returnid']) . "', 'Are you sure you want to remove this borrower? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this borrower.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        if (1) {
            echo " <a href='" . base_url() . "library/return_rental/i/" . encryptValue($row['returnid']) . "/s/" . encryptValue($row['stockid']) . "' title=\"Click to edit this return.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        }
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['returndate'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/load_stock_form/i/" . encryptValue($row['stockid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this stock item.\">" . $row['stocktitle'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/load_stock_item_form/i/" . encryptValue($row['item']) . "/a/" . encryptValue("view") . "/s/" . encryptValue($row['stockid']) . "' title=\"Click to view this item.\">" . $row['serialnumber'] . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "library/manage_borrowers/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo format_notice("There is no return at the moment.");
}
?>
</div>
              </td>
              </tr>

        </table>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:manage_returns_view.php

示例5: foreach

?>
</td>
</tr>
</table>
</div><br /><br />
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader' nowrap>Date Borrowed</td>\r\r\n           \t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>Returned / Borrowed</td>\r\r\n\t\t\t<td class='listheader' nowrap>Name</td>\r\r\n\t\t\t\r\r\n\t\t\t<td class='listheader' nowrap>Date Expected</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #check expiry of rental period
        $currentdate = date("Y-m-d H:i:s");
        $borrower_status = check_borrower_status($this, $row['borrowerid']);
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>";
        echo "\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datetaken'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['stocktitle'] . "</td>'\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . ($row['copiestaken'] - $borrower_status) . "/" . $row['copiestaken'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['returndate'])) . "</td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr></table>";
} else {
    echo format_notice("There are no borrowing data matching that criteria at the moment.");
}
?>
<br /><br />
<?php 
$this->load->view('incl/footer');
?>

</body>
</html>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:borrowing_report.php

示例6: foreach

        #Show in drop down if more than 1 class
        if (is_array($classids)) {
            if (count($classids) > 1) {
                foreach ($classids as $key => $classid) {
                    $class_str .= '<option>' . get_class_title($this, $classid) . '</option>';
                }
                $class_str = '<select class="selectfield">' . $class_str . '</select>';
            } elseif (count($classids) > 0) {
                $class_str = get_class_title($this, $classids[1]);
            }
        } else {
            $class_str = "N/A";
        }
        #Show one row at a time
        echo "<tr id='tr_" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='middle' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "exams/delete_exam/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this exam? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['id'] . "');\" title=\"Click to remove " . $row['exam'] . " from the school exam schedule.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "exams/load_exam_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit " . $row['exam'] . " details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n\t\t\t\t<td valign='middle'>" . $row['exam'] . "</td>\t\t\r\r\n\t\t\t\t<td valign='middle'>" . $row['contribution'] . "</td>\t\t\t\t\r\r\n\t\t\t\t<td valign='middle' nowrap>" . $term['term'] . " [" . $term['year'] . "]</td>\r\r\n\t\t\t\t<td valign='middle'>" . $class_str . "</td>\r\r\n\t\t\t\t<td valign='middle' class='rightListCell'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "exams/manage_exams/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No exams have been added. Click <a class='fancybox fancybox.ajax' href='" . base_url() . "exams/load_exam_form')' title='Click to add an exam'><i>here</i></a> to add an exam</div>";
}
?>

开发者ID:nwtug,项目名称:academia,代码行数:29,代码来源:manage_exams_view.php

示例7: foreach

    $counter = 0;
    foreach ($page_list as $row) {
        #User group details
        $usergroup = get_user_group_details($this, $row['usergroup']);
        if (empty($usergroup)) {
            $usergroup['groupname'] = '';
        }
        #Show one row at a time
        echo "<tr id='tr_" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "user/delete_staff/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this user? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['id'] . "');\" title=\"Click to remove this user.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "user/load_staff_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this user details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . ucwords(strtolower($row['firstname'] . " " . $row['lastname'])) . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['username'] . "</td>\r\r\n\t\t<td valign='top'>" . check_empty_value($usergroup['groupname'], 'N/A') . "</td>\t\t\r\r\n\t\t<td valign='top' nowrap>" . $row['telephone'] . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['emailaddress'] . "</td>\r\r\n\t\t<td valign='top' class='rightListCell'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "user/manage_staff/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No users have been registered.</div";
}
?>

            
            </div>
            </td>
            </tr>
          
        </table>
    </div>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:manage_staff_view.php

示例8: foreach

} else {
    echo $mindate;
}
?>
</td>
</tr>
</table>
</div><br /><br />
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n           \t<td class='listheader' nowrap>Serial Number</td>\r\r\n\t\t\t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>ISBN Number</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>";
        echo "\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datecreated'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['serialnumber'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['stocktitle'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['isbnnumber'] . "</td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr></table>";
} else {
    echo format_notice("There are no library data matching that criteria at the moment.");
}
?>
<br /><br />
<?php 
$this->load->view('incl/footer');
?>

</body>
</html>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:library_stock_report.php

示例9: mysql_select_db

     mysql_select_db($database_brewing, $brewing);
     $query_upDays = "SELECT * FROM upcoming";
     if ($filter != "all") {
         $query_upDays .= " WHERE brewBrewerID = '{$filter}'";
     }
     $upDays = mysql_query($query_upDays, $brewing) or die(mysql_error());
     $row_upDays = mysql_fetch_assoc($upDays);
     $totalRows_upDays = mysql_num_rows($upDays);
     do {
         mysql_select_db($database_brewing, $brewing);
         $query_upRecipe = sprintf("SELECT brewBrewerID FROM recipes WHERE id = '%s'", $row_upDays['upcomingRecipeID']);
         $upRecipe = mysql_query($query_upRecipe, $brewing) or die(mysql_error());
         $row_upRecipe = mysql_fetch_assoc($upRecipe);
         $totalRows_upRecipe = mysql_num_rows($upRecipe);
         $MySqlDate_3 = $row_upDays['upcomingDate'];
         $upcoming3 = GetTimeStamp($MySqlDate_3);
         if ($todaysDate < $upcoming3) {
             $upBrewName3 = truncate_string($row_upDays['upcoming'], 12, '...');
             if ($upcoming3 == $today3) {
                 echo "<tr><td valign=\"top\" class=\"calInfo\">Up: </td><td valign=\"top\" class=\"calInfo\">";
                 if ($row_upDays['upcomingRecipeID'] != "") {
                     echo "<a href=\"index.php?page=recipe&filter=" . $row_upRecipe['brewBrewerID'] . "&id=" . $row_upDays['upcomingRecipeID'] . "\">" . $upBrewName3 . "</a>";
                 } else {
                     echo $upBrewName3;
                 }
                 echo "</td></tr>";
             }
         }
     } while ($row_upDays = mysql_fetch_assoc($upDays));
     echo "</table></td>\n";
 }
开发者ID:geoffhumphrey,项目名称:brewblogger,代码行数:31,代码来源:calendar.inc.php

示例10: date

echo $transaction['amount'];
?>
</td></tr>
<tr>
  <td>Particulars</td>
  <td colspan="3"><?php 
echo $feedetails['fee'];
?>
</td>
</tr>
<tr><td>Paid by</td><td colspan="3"><?php 
echo $transaction['payer'];
?>
</td></tr>
<tr><td>Received by</td><td><?php 
echo $author['firstname'] . ' ' . $author['lastname'];
?>
</td><td>Date :</td><td><?php 
echo date("j M, Y", GetTimeStamp($transaction['dateadded']));
?>
</td></tr>
<tr><td>PRINT DATE</td><td><?php 
echo date("j M, Y");
?>
</td><td>PRINTED BY :</td><td><?php 
echo $this->session->userdata('names');
?>
</td></tr>
</table>
</body>
</html>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:transaction.php

示例11: foreach

              </tr>
            <tr>
              <td>
<div id="searchresults">
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n           \t\r\r\n\t\t\t<td class='listheader' nowrap>Item Name</td>\t\t\t\r\r\n\t\t\t<td class='listheader' nowrap>Quantity</td>\r\r\n\t\t\t<td class='listheader' nowrap>Issued to:</td>\t\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        if (1) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "students/delete_transaction/i/" . encryptValue($row['transactionid']) . "', 'Are you sure you want to remove this transaction? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this transaction.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        if (1) {
            echo " <a href='" . base_url() . "students/load_transaction_form/i/" . encryptValue($row['transactionid']) . "/s/" . encryptValue($row['studentid']) . "' title=\"Click to edit this transaction.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        }
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datecreated'])) . "</td>\t\t\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "inventory/load_item_form/i/" . encryptValue($row['itemid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this item.\">" . $row['itemname'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['quantity'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "students/load_student_form/i/" . encryptValue($row['studentid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this student.\">" . $row['studentno'] . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "deal/manage_deals/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo format_notice("There are no transactions at the moment.");
}
?>
</div>
              </td>
              </tr>

        </table>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:manage_transactions_view.php

示例12: foreach

    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td width='1%' class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td width='1%' class='listheader'>ISBN</td>\r\r\n\t\t\t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>Author</td>\r\r\n\t\t\t<td class='listheader' nowrap>Status</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Taken</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Returned</td>\r\r\n\t\t\t</tr>";
    #print_r($page_list);
    $counter = 0;
    foreach ($page_list as $row) {
        $row_color_class = '';
        if ($row['bookStatus'] == 'OUT') {
            $row_color_class = 'red_list_row';
        } else {
            $row_color_class = $counter % 2 ? '' : 'grey_list_row';
        }
        #Show one row at a time
        print "<tr id='list-row-" . $row['booklibraryId'] . "' class='listrow " . $row_color_class . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        print "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "library/delete_title/i/" . encryptValue($row['booklibraryId']) . "', 'Are you sure you want to remove this book? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.','list-row-" . $row['booklibraryId'] . "');\" title=\"Click to remove the item.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>&nbsp;&nbsp";
        if ($row['bookStatus'] == 'OUT') {
            print "&nbsp;&nbsp<a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/return_book_form/i/" . encryptValue($row['booklibraryId']) . "' title=\"Click to view return this book.\" class='fancybox fancybox.ajax contentlink'><img src='" . base_url() . "images/return_item.png' border='0'/></a>&nbsp;&nbsp";
        }
        print "</td>\r\r\n\t\t <td><a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/load_stock_form/i/" . encryptValue($row['booklibraryId']) . "/a/" . encryptValue("view") . "' title=\"Click to view this item.\" class='fancybox fancybox.ajax contentlink'>" . $row['isbnnumber'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['bookTitle'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['bookAuthor'] . "</td>\r\r\n\t\t\r\r\n\t\t<td  align='left' valign='top'>" . $row['bookStatus'] . "</td>\r\r\n\t\t\r\r\n\t\t<td  align='left' valign='top'>" . (!empty($row['lastBorrowTransDate']) ? date("j M, Y", GetTimeStamp($row['lastBorrowTransDate'])) : 'N/A') . "</td>\r\r\n\t\t\r\r\n\t\t<td  align='left' class='rightListCell' valign='top'>" . (!empty($row['lastBorrowTransDate']) && $row['lastBorrowTransDate'] < $row['lastReturnTransDate'] ? date("j M, Y", GetTimeStamp($row['lastReturnTransDate'])) : '') . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "library/inventory_status/p/%d", 'results') . "</td>\t\r\r\n\t</table>";
} else {
    echo format_notice("WARNING: No books have been added<br />Click &nbsp;<a class='fancybox fancybox.ajax' href='" . base_url() . "library/load_title_form' title='Click to add a Book'>here</a> to add book titles");
}
?>

</div>
              </td>
              </tr>

        </table>
</div> </div>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:inventory_status_view.php

示例13: current_class

        $current_class = current_class($this, $row['id']);
        echo "<tr class='listrow " . ($counter % 2 ? '' : 'grey_list_row') . "' id='student-list-row-" . $row['id'] . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        if ($view_leave) {
            echo " &nbsp;&nbsp; <a href='" . base_url() . "students/load_leave_form/s/" . encryptValue($row['id']) . "' title=\"Click to assign " . $row['firstname'] . " leave.\">Assign leave</a>";
        } else {
            #if(check_user_access($this,'delete_deal')){
            echo "<input class=\"list_checkbox\" type=\"checkbox\" name=\"selected_student[]\" id=\"selected_student_" . $row['id'] . "\" />";
            #}
            if ($delete_students) {
                echo "&nbsp;&nbsp;<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "students/delete_student/i/" . encryptValue($row['id']) . "', 'Are you sure you want to delete this student? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.','student-list-row-" . $row['id'] . "');\" title=\"Click to remove this student.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
            }
            #if(check_user_access($this,'update_deals')){
            //echo " &nbsp;&nbsp; <a onclick=\"updateFieldLayer('".base_url()."students/student_profile/i/".encryptValue($row['id'])."','','','contentdiv','');\" href='javascript:void(0)' title=\"Click to edit ".$row['firstname']."'s details.\"><img src='".base_url()."images/edit.png' border='0'/></a>";
            #}
        }
        echo "</td>\t\t\r\r\n\t\t<td valign='top' id='std_name_" . $row['id'] . "'><a onclick=\"updateFieldLayer('" . base_url() . "students/student_profile/i/" . encryptValue($row['id']) . "','','','contentdiv','');\" href='javascript:void(0)' title=\"Click to edit " . $row['firstname'] . "'s details.\">" . $row['firstname'] . " " . $row['lastname'] . "</a></td>\t\r\r\n\t\t<td valign='top'>" . $row['sponsorfullname'] . "</td>\t\r\r\n\t\t<td valign='top'>" . $row['studentno'] . "</td>\r\r\n\t\t<td valign='top' nowrap>" . number_format(get_date_diff($row['dob'], date('m/d/Y h:i:s a', time()), 'days') / 365, 0) . "</td>" . ($view_leave ? "<td valign='top' nowrap id='std_class_" . $row['id'] . "'>" . $current_class['class'] . ", " . $current_class['term'] . " [" . $current_class['year'] . "]</td>" . "<td>" . (empty($row['leaves']) ? '<i>N/A</i>' : '<a href="' . base_url() . 'students/student_leave_list/i/' . encryptValue($row['id']) . '" title="click to view ' . $row['firstname'] . '\' leaves.">' . $row['leaves'] . '</a>') . "</td></tr>" : "<td valign='top'>" . $admitclass . ", " . $admitterminfo['term'] . " [" . $admitterminfo['year'] . "]</td>\r\r\n\t\t<td valign='top' id='std_class_" . $row['id'] . "' nowrap>" . $current_class['class'] . ", " . $current_class['term'] . " [" . $current_class['year'] . "]</td>\r\r\n\t\t<td class='rightListCell' valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>");
        $counter++;
        $current_student = $row['id'];
    }
    echo "<tr>\r\r\n\t  \t <td colspan='7' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "students/manage_students/p/%d", 'contentdiv') . "</td>\r\r\n\t\t</tr>\r\r\n\t\t</table>";
} else {
    echo "<div>No student admissions have been made.</div>";
}
?>

           </div> 
            
            </td>
            </tr>
          
        </table>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:manage_students_view.php

示例14: date

</a></td>
          	<td><a href="<?php 
    echo $redirectUrl . $notice_details['notice_id'];
    ?>
" class="notices">
                <div class="msgContent"><?php 
    echo "<b>" . $notice_details['title'] . "</b>";
    ?>
</div>
                </a>
            </td>
            <td><a href="<?php 
    echo $redirectUrl . $notice_details['notice_id'];
    ?>
" class="notices"><b><?php 
    echo date("D, j M, Y", GetTimeStamp($notice_details['dateadded']));
    ?>
</b></a></td>
         
          </tr>          
        
		 <?php 
}
?>
 
      </table>
    </div></td></tr></table></td>
                  </tr>
              </table> 
</td>
              <td width="1%"><img src='<?php 
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:notices.php

示例15: GetTimeStamp

		$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
		$MESSAGE_BODY = "Name: ".$_POST["name"]."<br>"; 
		$MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>"; 
		$MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; 
		//mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); 
		//echo "<script language=javascript>document.getElementById(\"contactStatus\").innerHTML = \"Your comments have been sent\" </script>";
		echo "<script language=javascript>alert(\"Your comments have been registered\") </script>";
		
		//echo "<script src=\"Scripts/sexyalertbox.v1.1.js\" language=javascript>Sexy.alert(\"Your comments have been sent successfully!!\")</script>";
	}*/
?>

<?php 
//print_r($_GET);
if (strcmp($_GET['response'], "OK") == 0) {
    $servertime = GetTimeStamp();
    $original = $_GET['time'];
    $timediff = getMyTimeDiff($servertime, $original);
    if ($timediff < 30) {
        //check that the user cannot refresh the page submit again and again
        echo "<script language=javascript>alert(\"Your comments have been sent\") </script>";
    }
    //unset($_GET);
}
function GetTimeStamp()
{
    $accessDate = date("Y-m-d");
    $timezone = 'Asia/Calcutta';
    date_default_timezone_set($timezone);
    $tz = date_default_timezone_get();
    $accessTime = date("H:i:s");
开发者ID:rohdimp24,项目名称:test,代码行数:31,代码来源:ContactUsF.php


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