本文整理汇总了PHP中main_front_class::common_fetchdata方法的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class::common_fetchdata方法的具体用法?PHP main_front_class::common_fetchdata怎么用?PHP main_front_class::common_fetchdata使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main_front_class
的用法示例。
在下文中一共展示了main_front_class::common_fetchdata方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
$tender_details = $obj->common_fetchdata('tender', $_GET['id']);
$purchaser_detail = $obj->common_fetchdata('create_purchaser', $tender_details['tender_purchaser']);
//$main_consignee = $obj->List_Consignee_on_Purchaser($tender_details['tender_purchaser']);
$main_consignee = $obj->List_Drop_Down("consignee", "csign_short_name", "id");
$tender_status = $obj->Tender_status($tender_details['status']);
if ($tender_details['tender_type'] == 0) {
$status = 'Advertise';
}
if ($tender_details['tender_type'] == 1) {
$status = 'Limited';
}
if ($tender_details['tender_type'] == 2) {
$status = 'Bulletin';
}
if ($tender_details['tender_type'] == 3) {
$status = 'SPL Limited';
}
if ($tender_details['tender_type'] == 4) {
$status = 'Local Purchaser';
}
$product_details = $obj->attach_records_products($_GET['id'], 'tender_firm_product', 'tender_id');
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:tender_quot_new+(discovered-PC's+conflicted+copy+2013-05-05).php
示例2:
?>
<td style="border:1px solid #696969;height:25px; width:180px; font-size:12px"><?php
print_r($record_front['csign_director']);
?>
</td><td style="border:1px solid #696969; height:25px;width:180px; font-size:12px"><?php
print_r($record_front['csign_pan_number']);
?>
</td><td style="border:1px solid #696969; height:25px;width:180px; font-size:12px"><?php
print_r($record_front['csign_tel_number']);
?>
</td>
<?php
}
if (isset($_GET['purchaser_post_name']) && $_GET['purchaser_post_name'] != "" && isset($_GET['id']) && $_GET['id'] != "") {
$obj->purchase_Update_Directors($_GET['id'], $_GET['purchaser_post_name'], $_GET['purchaser_office_name'], $_GET['purchaser_tel'], $_GET['purchaser_mob'], $_GET['purchaser_residence'], $_GET['purchaser_fax'], $_GET['purchaser_email'], $_GET['purchaser_deals']);
$record_front_purchaser = $obj->common_fetchdata('purchaser_director', $_GET['id']);
?>
<td style="border:1px solid #696969;height:25px; width:120px; font-size:12px"><?php
if ($record_front_purchaser['purchaser_post_name'] == "") {
echo " ";
}
print_r($record_front_purchaser['purchaser_post_name']);
?>
</td><td style="border:1px solid #696969; height:25px;width:120px; font-size:12px"><?php
if ($record_front_purchaser['purchaser_office_name'] == "") {
echo " ";
}
print_r($record_front_purchaser['purchaser_office_name']);
?>
</td><td style="border:1px solid #696969; height:25px;width:120px; font-size:12px"><?php
if ($record_front_purchaser['purchaser_tel'] == "") {
示例3: array
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
if (isset($_GET['val']) == 1 && $_GET['val'] != "") {
$result = $obj->common_fetchdata('item_manager', $_GET['val']);
}
if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) {
/*$finalName = array();
$name = array();
for($i=0;$i<sizeof($_POST['titles']);$i++)
{
if($_POST['titles'][$i]!="")
{
if($_FILES['files']['name'][$i]!="")
{
$name[$i] = $_FILES['files']['name'][$i];
$tmp_name = $_FILES['files']['tmp_name'][$i];
$ext = $obj->getExtension($name[$i]);
$newName = $obj->nameGen();
$finalName[$i] = $newName.".".$ext;
move_uploaded_file($tmp_name,"attachements/items_attach/". $finalName[$i]);
}
else
{
示例4:
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->common_fetchdata('consignee', $_GET['val']);
$result_product = $obj->attach_records($_GET['val'], 'consignee_director', 'csign_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" />
<link rel="stylesheet" href="main_css/main_css.css"/>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<style type="text/css">
*
{
margin:0;
padding:0;
}
#wrapper
{
width:1200px;
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:firm_profile_view+(discovered-PC's+conflicted+copy+2013-05-05).php
示例5:
<?php
session_start();
require_once "../main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->common_fetchdata('specification', $_GET['val']);
}
?>
<!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" />
<link rel="stylesheet" href="../main_css/main_css.css"/>
<script type="text/javascript" src="../js/jquery-1.9.1.min.js"></script>
<style type="text/css">
*
{
margin:0;
padding:0;
}
#wrapper
{
width:1200px;
height:auto;
示例6: SimpleImage
<?php
session_start();
include "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
$list_Office = $obj->List_Drop_Down("office", "office_code", "id");
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->common_fetchdata('officer', $_GET['val']);
$office_name_id = $obj->Common_name_id('office', 'office_code', $result['officer_office']);
$result_attachment = $obj->common_fetch_attachement('officer_attachments', 'officer_id', $_GET['val']);
}
include "main_includes/simpleimage.php";
$thumb = new SimpleImage();
if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) {
//----PIC UPLAOD------------------------
if ($_FILES['officer_photo']['name'] != "") {
//explode()---break a string in to array
$alloweExts = array("jpg", "jpeg", "gif", "png");
$extension = end(explode(".", $_FILES['officer_photo']['name']));
if ($_FILES['officer_photo']['type'] == "image/jpg" || $_FILES['officer_photo']['type'] == "image/jpeg" || $_FILES['officer_photo']['type'] == "image/gif" || $_FILES['officer_photo']['type'] == "image/png" || $_FILES['officer_photo']['size'] != 0 && in_array($extension, $alloweExts)) {
$img_orig_name = $_FILES['officer_photo']['name'];
$img_new_name = $obj->nameGen();
$img_extn = $obj->getExtension($img_orig_name);
$img_final_name = $img_new_name . "." . $img_extn;
move_uploaded_file($_FILES['officer_photo']['tmp_name'], "photo/officer/main/" . $img_final_name);
$thumb->load("photo/officer/main/" . $img_final_name);
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:create_officer+(discovered-PC's+conflicted+copy+2013-05-05).php
示例7: explode
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->common_fetchdata('history_tender', $_GET['val']);
$corect_date_format = explode("-", $result['tender_due_date']);
$final_date = $corect_date_format[2] . '-' . $corect_date_format[1] . '-' . $corect_date_format[0];
$result_product = $obj->common_fetch_attachement_withItem_His('history_po_firm_product', 'tender_id', $_GET['val']);
$result_attachment = $obj->common_fetch_attachement('history_tender_attachments', 'tender_id', $_GET['val']);
//$result_limited_firms = $obj->common_fetch_attachement_limited_firm('tender_limited_firm','tender_id',$_GET['val']);
$tender_office = $obj->Common_name_id('office', 'office_name', $result['tender_office']);
$tender_purchaser = $obj->Common_name_id('create_purchaser', 'purchaser_short_name', $result['tender_purchaser']);
$list_consignee_edit = $obj->List_Drop_down_onSelection_noAjax('main_consignee', 'main_csign_short_name', 'main_csign_purchaser', $result['tender_purchaser']);
}
$list_office = $obj->List_Drop_Down("office", "office_name", "id");
$list_firm = $obj->List_Drop_Down("consignee", "csign_short_name", "id");
//print_r($list_firm);
//tere liye
?>
<script type="text/javascript">
//tere liye check
<?php
$tlf_str = "var tere_liye_firms_list = [";
示例8:
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
$tender_details = $obj->common_fetchdata('tender', $_GET['id']);
//print_r($tender_details);
//$purchaser_detail=$obj->common_fetchdata('create_purchaser',$tender_details['tender_purchaser']);
$office_detail = $obj->common_fetchdata('office', $tender_details['tender_office']);
if ($tender_details['tender_type'] == 0) {
$status = 'Advertise';
}
if ($tender_details['tender_type'] == 1) {
$status = 'Limited';
}
if ($tender_details['tender_type'] == 2) {
$status = 'Bulletin';
}
if ($tender_details['tender_type'] == 3) {
$status = 'SPL Limited';
}
if ($tender_details['tender_type'] == 4) {
$status = 'Local Purchaser';
}
$product_details = $obj->attach_records_products($_GET['id'], 'tender_firm_product', 'tender_id');
$attachments = $obj->attach_records($_GET['id'], 'tender_attachments', 'tender_id');
示例9: explode
<?php
session_start();
require_once "../main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->common_fetchdata('po', $_GET['val']);
if ($result['due_date'] != '0000-00-00') {
$corect_date_format = explode("-", $result['due_date']);
$due_date = $corect_date_format[2] . '/' . $corect_date_format[1] . '/' . $corect_date_format[0];
} else {
$due_date = '';
}
if ($result['refi_date'] != '0000-00-00') {
$corect_date_format2 = explode("-", $result['refi_date']);
$refi_date = $corect_date_format2[2] . '/' . $corect_date_format2[1] . '/' . $corect_date_format2[0];
} else {
$refi_date = '';
}
if ($result['extended_date'] != '0000-00-00') {
$corect_date_format3 = explode("-", $result['extended_date']);
$extended_date = $corect_date_format3[2] . '/' . $corect_date_format3[1] . '/' . $corect_date_format3[0];
} else {
$extended_date = '';
}
$result_product = $obj->common_fetch_attachement_withItem_In_PO_NO_Limit_Final('po_products', 'po_id', $_GET['val']);
示例10:
}
?>
<!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" />
<link rel="stylesheet" href="main_css/main_css.css"/>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="main_js/AjaxJavaSCript.js"></script>
</head>
<body>
<?php
if (isset($_GET['Pid'])) {
$tender_firms = $obj->common_fetchdata('tender_firms', $_GET['Pid']);
$firm_name = $obj->Common_name_id('consignee', 'csign_firm_name', $tender_firms['firm']);
$main_consignee = $obj->Common_name_id('main_consignee', 'main_csign_name', $tender_firms['consignee']);
$list_firm = $obj->List_Drop_Down("consignee", "csign_firm_name", "id");
?>
<form method="post" action="#" enctype="multipart/form-data">
<table width="820" border="1" cellspacing="10" id="firm_table">
<tr>
<td width="90px;"><label>Select Firm</label></td>
<td width="200px;"><select id="firm" name="firm">
<option value="<?php
print_r($firm_name['id']);
?>
"><?php
print_r($firm_name['csign_firm_name']);
?>
示例11: SimpleImage
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (!isset($_SESSION['rb_uname']) || !isset($_SESSION['rb_pass']) || !isset($_SESSION['rb_pin']) || !isset($_SESSION['rb_power'])) {
$obj->redirect("index.php");
} else {
$result_login = $obj->LoginData($_SESSION['rb_power'], $_SESSION['rb_uname']);
}
$list_Office = $obj->List_Drop_Down("office", "office_code", "id");
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->common_fetchdata('employee', $_GET['val']);
$office_name_id = $obj->Common_name_id('office', 'office_code', $result['employee_office']);
$result_attachment = $obj->common_fetch_attachement('employee_attachments', 'employee_id', $_GET['val']);
}
include "main_includes/simpleimage.php";
$thumb = new SimpleImage();
if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) {
//---------PIC UPLOAD-----------
if ($_FILES['employee_photo']['name'] != "") {
$alloweExts = array("jpg", "jpeg", "gif", "png");
$extension = end(explode(".", $_FILES['employee_photo']['name']));
if ($_FILES['employee_photo']['type'] == "image/jpg" || $_FILES['employee_photo']['type'] == "image/jpeg" || $_FILES['employee_photo']['type'] == "image/gif" || $_FILES['employee_photo']['type'] == "image/png" || $_FILES['employee_photo']['size'] != 0 && in_array($extension, $alloweExts)) {
$img_orig_name = $_FILES['employee_photo']['name'];
$img_new_name = $obj->nameGen();
$img_extn = $obj->getExtension($img_orig_name);
$img_final_name = $img_new_name . "." . $img_extn;
move_uploaded_file($_FILES['employee_photo']['tmp_name'], "photo/employee/main/" . $img_final_name);
$thumb->load("photo/employee/main/" . $img_final_name);
$thumb->resize(190, 180);
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:create_employee+(discovered-PC's+conflicted+copy+2013-05-05).php