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


PHP getDateFormate函数代码示例

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


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

示例1: mysql_query

$godown='';$rate='';$disc_perc='';$p_and_f='';$duty_perc='';$ecess_perc='';
$vat_perc='';$sc_perc='';$add_amt='';$less_amt='';$net_rate='';


if(isset($_GET[$PageKey]))
{
	$sql = "select ms_GRN_master.*,ms_bill_pass_master_new.bill_pass_id,ms_bill_pass_master_new.bill_pass_date from ms_GRN_master ,ms_bill_pass_master_new where ms_bill_pass_master_new.$PageKey = '".$_GET[$PageKey]."'";
	$result = mysql_query ($sql) or die ("Invalid query : ".$sql."<br>".mysql_errno()." : ".mysql_error());
	if(mysql_num_rows($result)>0)
	{
		$row=mysql_fetch_array($result);
		$PageKeyValue=$row['bill_pass_id'];$bill_pass_date=getDateFormate($row['bill_pass_date']);
		$GRN_id=$row['GRN_id'];$grn_date=getDateFormate($row['GRN_date']);
		$supplier_id=$row['supplier_id'];$order_id=$row['order_id'];
		$dc_no=$row['dc_number'];$dc_date=getDateFormate($row['dc_date']);
		$inv_no=$row['inv_number'];$inv_date=getDateFormate($row['inv_date']);
		$remarks=$row['remarks'];$disc_amount=$row['disc_amount'];$duty_amount=$row['duty_amount'];
		$vat_amount=$row['vat_amount'];$ecess_amount=$row['ecess_amount'];
		$gross_amount=$row['gross_amount'];$othersamount=$row['others_amount'];
		$netamount=$row['net_amount'];$totalamount=$row['total_amount'];
	}
}
?>
<?
if(isset($_GET["bill_pass_id"]))
{
	$bill_pass_id = $_GET["bill_pass_id"];
}
$sql_count = "select count(*) as count from ms_GRN_master,ms_GRN_transaction 
where ms_GRN_master.GRN_id=ms_GRN_transaction.GRN_id and ms_GRN_master.GRN_id='".$GRN_id."'";
$result_count = mysql_query($sql_count) or die ("Invalid query : ".$sql_count."<br>".mysql_errno()." : ".mysql_error());
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:store_print_bill_passing.php

示例2: mysql_query

$query_count = $query_count;
$result = mysql_query($query_count);
$row_count = mysql_fetch_array($result);
$numrows = $row_count['count'];
$count = ceil($numrows / $row_limit);
/////////////////// ********************* Select For Count Edit *************** ///////////////
if (isset($_GET['StockId'])) {
    $StockId = $_GET['StockId'];
    $sql = "select * from " . $mysql_adm_table_prefix . "stock_master where rec_id = '{$StockId}'";
    $result = mysql_query($sql) or die("Error in query:" . $sql . "<br>" . mysql_error() . ":" . mysql_errno());
    $row = mysql_fetch_array($result);
    $CountId = $row['CountId'];
    $StockInKgs = $row['StockInKgs'];
    $StockInBale = $row['StockInBale'];
    $ProductId = getCount("ProductId", "rec_id", $CountId);
    $Date = getDateFormate($row['Date'], 1);
}
?>
<table width="98%" cellpadding="0" cellspacing="0" align="center" border="0">
  <tr>
    	<td align="left" valign="top" width="230px" style="padding-top:5px;">
			<?php 
include "inc/adm0_snb.php";
?>
        </td>
        
        <td style="padding-left:5px; padding-top:5px;" valign="top">
        	<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0">
            	<tr>
                	<td align="center" class="gray_bg"><img src="images/bullet.gif" width="15" height="22"/> &nbsp; Add Stock</td>
                </tr>
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:add_stock.php

示例3: getDateFormate

        if ($sno % 2 == 1) {
            ?>
 bgcolor="#F5F2F1" <?php 
        }
        ?>
>
      <td align="center"><?php 
        echo $sno;
        ?>
</td>
      <td align="center"><?php 
        echo $row['RGP_GRN_id'];
        ?>
</td>
      <td align="center"><?php 
        echo getDateFormate($row['RGP_GRN_date']);
        ?>
</td>
      <td align="center"><?php 
        echo $row['RGP_id'];
        ?>
</td>
      <td align="left" style="padding-left:5px">
      <?php 
        $sql_S = "select * from ms_supplier where supplier_id='" . $row['supplier_id'] . "'";
        $res_S = mysql_query($sql_S) or die(mysql_error());
        $row_S = mysql_fetch_array($res_S);
        echo $row_S['name'];
        ?>
      </td>
      <td align="left" style="padding-left:5px">
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:store_get_list_RGP_GRN.php

示例4: if

                                $sql_idate="select * from maint_job where insert_date='".date('Y-m-d')."' and job_id='".$row['job_id']."'";
                                $res_idate=mysql_query($sql_idate);
                                $row_idate=mysql_fetch_array($res_idate);
                                $insert_date=$row_idate['insert_date'];
                              ?>
                              <tr <? if ($sno%2==1) { ?> bgcolor="#F5F2F1" <? } ?>>
                                <td align="center"><?php 
echo $sno;
?>
</td>
                                <td align="center"><?php 
echo $row['job_code'];
?>
</td>
                                <td align="center"><b><?php 
echo getDateFormate($row['schedule_date']);
?>
</b></td>
                                <td align="left" style="padding-left:5px">
                                <?
                                  $sql_M = "select mmm.name from maint_machine_master mmm,maint_job mj where mmm.machine_code= '".$row['machine_id']."' and mj.job_code='".$row['job_code']."' and mmm.machine_code=mj.machine_id";
                                  $res_M = mysql_query($sql_M) or die ("Invalid query : ".$sql_M."<br>".mysql_errno().":".mysql_error());
                                  $row_M = mysql_fetch_array($res_M);
                                  echo $row_M['name'];
                                ?>
                                </td>
                                <td align="left" style="padding-left:5px">
                                <?
                                  $sql_S = "select ms.name from maint_services ms,maint_job mj where ms.s_code =mj.service_id and mj.job_code='".$row['job_code']."' and mj.service_id=ms.s_code";
                                  $res_S = mysql_query($sql_S) or die ("Invalid query : ".$sql_S."<br>".mysql_errno().":".mysql_error());
                                  $row_S = mysql_fetch_array($res_S);
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:maint_list_job.php

示例5: mysql_query

$po_number = '';
$quantity = '';
$amount = '';
$mode = "";
if (isset($_GET["mode"])) {
    $mode = $_GET["mode"];
}
if (isset($_GET[$PageKey])) {
    $sql = "select * from ms_frieght_entry_master where {$PageKey} = '" . $_GET[$PageKey] . "'";
    $result = mysql_query($sql) or die("Invalid query : " . $sql . "<br>" . mysql_errno() . " : " . mysql_error());
    if (mysql_num_rows($result) > 0) {
        $row = mysql_fetch_array($result);
        $PageKeyValue = $row['frieght_id'];
        $frieght_date = getDateFormate($row['frieght_date']);
        $reference_number = $row['reference_number'];
        $reference_date = getDateFormate($row['reference_date']);
        $remarks = $row['remarks'];
        $total_amount = $row['total_amount'];
    }
}
if (isset($_GET["Message"])) {
    $Message = $_GET["Message"];
}
if (isset($_GET["frieght_id"])) {
    $frieght_id = $_GET["frieght_id"];
}
?>
<table width="98%" cellpadding="0" cellspacing="0" align="center" border="0">
	<tr>
		<td align="left" valign="top" width="230px" style="padding-top:5px;">
			<?php 
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:store_view_frieght_bill_entry.php

示例6: while

    {
      $sno=1;
      while($row=mysql_fetch_array($result))
      {
        $sql_idate="select * from elec_MM where insert_date='".date('Y-m-d')."' and MM_id='".$row['MM_id']."'";
        $res_idate=mysql_query($sql_idate);
        $row_idate=mysql_fetch_array($res_idate);
        $insert_date=$row_idate['insert_date'];
        ?>
        <tr>
            <td align="center"><?php 
echo $sno++;
?>
</td>
            <td align="center"><?php 
echo getDateFormate($row['MM_date']);
?>
</td>
            <td align="left" style="padding-left:2px">
            <?
            $sqlD="select name from elec_department where department_id='".$row['department_id']."'";
            $resD=mysql_query($sqlD);
            $dname='';
            if(mysql_num_rows($resD)>0)
            {
              $rowD=mysql_fetch_array($resD);
              $dname=$rowD['name'];
            }
            echo $dname;
            ?>
            </td>
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:elec_get_list_MM.php

示例7: while

	<?php 
if (mysql_num_rows($result) > 0) {
    $sno = 1;
    while ($row = mysql_fetch_array($result)) {
        $sql_idate = "select * from elec_HPS_master where insert_date='" . date('Y-m-d') . "' and HPS_id='" . $row['HPS_id'] . "'";
        $res_idate = mysql_query($sql_idate);
        $row_idate = mysql_fetch_array($res_idate);
        $insert_date = $row_idate['insert_date'];
        ?>
        <tr>
        	<td align="center"><?php 
        echo $sno++;
        ?>
</td>
          <td align="center"><?php 
        echo getDateFormate($row['reading_date']);
        ?>
</td>
          <td align="center"><?php 
        echo $row['power_failure'];
        ?>
</td>
          <td align="center"><?php 
        echo $row['plantname'];
        ?>
</td>
          <td align="center"><?php 
        echo $row['pumpname'];
        ?>
</td>
          <td align="center"><?php 
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:elec_get_list_HPS.php

示例8: mysql_query

<?
if(isset($_GET['id']))
{
	$sql = "select * from ".$mysql_adm_table_prefix."pi_master where rec_id = '".$_GET['id']."'";
	$result = mysql_query($sql) or die("Error in Query : ".$sql."<br/>".mysql_error()."<br/>".mysql_errno());
	$row = mysql_fetch_array($result);
	$rec_id = $row['rec_id'];
	$pi_number = $row['PiNumber'];
	$pi_date = getDateFormate($row['PiDate'],1);
	$buyername = getBuyer('BuyerName','rec_id',$row['BuyerId']);
	$buyercountry = getCountry(getBuyer('CountryId','rec_id',$row['BuyerId']));
	$buyeraddress = getBuyer('Address','rec_id',$row['BuyerId']);
	$tinno = getBuyer('TinNumber','rec_id',$row['BuyerId']);
	$cstno = getBuyer('CstNumber','rec_id',$row['BuyerId']);
	$pino = $row['PiNumber'];
	$pidate = getDateFormate($row['PiDate'],1);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DOMESTIC PURCHASE INVOICE</title>
<link href="style/adm0_style.css" rel="stylesheet" type="text/css">
<style type="text/css" media="print">

#div_print_btn
{
 visibility:hidden;
}
</style>
<style media="print" type="text/css">
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:print_domesticpi.php

示例9: getDateFormate

        ?>
</td>
                      <td align="center"><?php 
        echo $row['order_id'];
        ?>
</td>
                      <td align="center"><?php 
        echo $row['indent_id'];
        ?>
</td>
                      <td align="center" width="8%"><?php 
        echo $row['inv_number'];
        ?>
</td>
	                  <td align="center" width="8%"><?php 
        echo getDateFormate($row['inv_date']);
        ?>
</td>
                      <?php 
        if ($SearchType == 'ItemName') {
            ?>
                        <td align="left" style="padding-left:2px">
                          <?php 
            $sql_S = "select * from ms_supplier where supplier_id='" . $row['supplier_id'] . "' ";
            $res_S = mysql_query($sql_S) or die(mysql_error());
            $row_S = mysql_fetch_array($res_S);
            echo $row_S['name'];
            ?>
                        </td>
                      <?php 
        }
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:store_print_GRN_By_Supplier_and_Item.php

示例10: mysql_query

                                                                                                         and ms_purchaser_master.purchaser_id = ms_buyer_master.purchaser_id
                                                                                                          and ms_purchase_form_master.form_id = ms_buyer_master.form_id
                                                                                                            $form_search_string
                                                                                                        
                                                                                                         $buy_search_string $tostockSeachString order by ms_buyer_master.buyer_date
                                                                                                         ";
                                                                                    
                                                                                    $result_buy = mysql_query($sql_buy) or die("Error in : ".$sql_buy."<br>".mysql_errno()." : ".mysql_error());
                                                                                    if(mysql_num_rows($result_buy)>0)
                                                                                    {
                                                                                        while($row_buy = mysql_fetch_array($result_buy))
                                                                                        {
                                                                                        ?>
                                                    <tr valign="top" class="tableTxt">
                                                      <td align="center" width="25%" >
                                                          <?=getDateFormate($row_buy["buyer_date"])?>
                                                        </td>
                                                        <td align="center" width="25%">
															<?
                                                                if($row_buy["fromWhat"]==0)
                                                                {
                                                                    echo "To Stock";
                                                                }
                                                                else
                                                                {
                                                                    echo $row_buy["name"];
                                                                }
                                                            ?>
                                                        </td>
                                                        <td align="center" width="25%">
                                                         <?=$row_buy["form_name"]?>
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:purchase_reports_master.php

示例11: while

																		}
																	}
																	?>
                                                              	</tr>
                                                     <?
                                                        while($row=mysql_fetch_array($result_prj))
                                                        {	
														
                                                    ?>
                                                                <tr <? if ($sno%2==1) { ?> bgcolor="#F5F2F1" <? } ?> class="text_1">
                                                                    <td align="center"><?php 
echo getDispatchNumber("DispatchNumber", "rec_id", $row['DispatchNumberId']);
?>
</td>
                                                                    <td align="center"><?php 
echo getDateFormate(getDispatchNumber("DespatchDate", "rec_id", $row['DispatchNumberId']), 1);
?>
</td>
                                                                    <td align="center"><?php 
echo getBuyer('BuyerName', 'rec_id', getDispatchNumber("BuyerId", "rec_id", $row['DispatchNumberId']));
?>
</td>
                                                                    <td align="center"><?php 
echo $row['Port'];
?>
</td>
                                                                    <td align="center"><?php 
echo getCountry(getBuyer('CountryId', 'rec_id', $row['BuyerId']));
?>
</td>
                                                                    <td align="center"><?php 
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:export_doc_report.php

示例12: mysql_query

	$mode=$_GET['mode'];
}
//////////////////////////////////////////////////////////
$issue_id='';$purpose='';$issue_date='';
$item_id='';$stk_qty='';$req_qty='';$iss_qty='';$godown='';$department_id='';$machinary_id='';
//////////////////////////////////////////////////////////
if(isset($_GET[$PageKey]))
{
	$sql = "select * from ms_IE_master where $PageKey = '".$_GET[$PageKey]."'";
	$result = mysql_query ($sql) or die ("Invalid query : ".$sql."<br>".mysql_errno()." : ".mysql_error());
	if(mysql_num_rows($result)>0)
	{
		$row = mysql_fetch_array($result);
		$PageKeyValue = $row[$PageKey];
		$purpose=stripslashes($row['purpose']);
		$issue_date=getDateFormate($row['IE_date']);		
	}
}

if(isset($_GET["IE_id"]))
{
	$issue_id = $_GET["IE_id"];
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Print Issue Entry</title>
开发者ID:shailendra999,项目名称:hr_admin,代码行数:30,代码来源:store_print_issue_entry.php

示例13: getDateFormate

                                                                    	<input type="text" name="Date" id="Date" value="<?php 
echo $Date;
?>
" style="width:150px; height:22px;"/>
                                                                    	<a href="javascript:void(0)" onClick="gfPop.fPopCalendar(document.frm_stock_check.Date);return false;" HIDEFOCUS><img name="popcal" align="absbottom" src="./calendar/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                                                    	<input type="submit" id="button_check" name="button_check" value="Check">    
                                                                    </td>
                                                                    
                                                                    	
                                                                </tr>
															</table>
                                                            </form>
                                                            <?
                                                            if(isset($_POST["button_check"]))
															{
																$Date = getDateFormate($_POST["Date"],1);
																$prdid = $_POST["txt_product"];
                                                            ?>
                                                            
                                                            
                                                            <table align="center" width="100%" border="0" class="border">
                                                                <tr>
                                                                	<td colspan="10" class="gredBg">
                                                                    	REPORT SUMMARY AS ON <?php 
echo $Date;
?>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                	<td width="22%" rowspan="3"  class="gredBg">
																		<?php 
开发者ID:shailendra999,项目名称:hr_admin,代码行数:31,代码来源:daily_summary_stock_report.php

示例14: mysql_query

$item_id = '';
$remarks = '';
$quantity = '';
$value = '';
$duedate = '';
//////////////////////////////////////////////////////////
if (isset($_GET[$PageKey])) {
    $sql = "select * from ms_NRGP_master where {$PageKey} = '" . $_GET[$PageKey] . "'";
    $result = mysql_query($sql) or die("Invalid query : " . $sql . "<br>" . mysql_errno() . " : " . mysql_error());
    if (mysql_num_rows($result) > 0) {
        $row = mysql_fetch_array($result);
        $PageKeyValue = $row[$PageKey];
        $NRGP_date = getDateFormate($row['NRGP_date']);
        $supplier_id = $row['supplier_id'];
        $ref_quot_no = $row['ref_quot_no'];
        $ref_quot_date = getDateFormate($row['ref_quot_date']);
        $despatch_through = $row['despatch_through'];
        $special_instr = stripslashes($row['special_instr']);
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Print NON RETURNABLE GATE PASS</title>
<style>
.note
{
padding-left:35px;
font: Arial, Helvetica, sans-serif;
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:store_print_NRGP_for_GRN.php

示例15: mysql_query

                                                                     <td align="center">
                                                                     	Is EC
                                                                     </td>
                                                                     <td>
                                                                     </td>
                                                                 </tr>
                                                                 <?php 
 $sql_buy = "select * from \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tms_buyer_master,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tms_purchase_product_master,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tms_purchaser_master,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tms_purchase_form_master\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t where \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t company_id = '" . $row_company["company_id"] . "'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t and ms_purchase_product_master.product_id = ms_buyer_master.product_id\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t and ms_purchaser_master.purchaser_id = ms_buyer_master.purchaser_id\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t and ms_purchase_form_master.form_id = ms_buyer_master.form_id\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {$buy_search_string} order by ms_buyer_master.buyer_date\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ";
 $result_buy = mysql_query($sql_buy) or die("Error in : " . $sql_buy . "<br>" . mysql_errno() . " : " . mysql_error());
 if (mysql_num_rows($result_buy) > 0) {
     while ($row_buy = mysql_fetch_array($result_buy)) {
         ?>
                                                                     <tr valign="top" class="tableTxt">
                                                                       <td align="center" >
                                                                           <?php 
         echo getDateFormate($row_buy["buyer_date"]);
         ?>
                                                                         </td>
                                                                         <td align="center">
                                                                           <?php 
         echo $row_buy["name"];
         ?>
                                                                         </td>
                                                                         <td align="center">
                                                                           <?php 
         echo $row_buy["form_name"];
         ?>
                                                                         </td>
                                                                         <td align="center">
                                                                           <?php 
         echo $row_buy["product_name"];
开发者ID:ViShNuPrAtap,项目名称:lss,代码行数:31,代码来源:purchase_edit_buysell.php


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