本文整理汇总了PHP中main_front_class类的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class类的具体用法?PHP main_front_class怎么用?PHP main_front_class使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了main_front_class类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main_front_class
<?php
require_once "main_includes/main_class.php";
$ajaxobj = new main_front_class();
/* RECEIVE VALUE */
$validateValue = $_REQUEST['fieldValue'];
$validateId = $_REQUEST['fieldId'];
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "po_number") {
if ($ajaxobj->Duplicate_Pin_Common($validateValue, "history_po", "po_number")) {
// validate??
$arrayToJs[1] = true;
// RETURN TRUE
echo json_encode($arrayToJs);
// RETURN ARRAY WITH success
} else {
$arrayToJs[1] = false;
echo json_encode($arrayToJs);
// RETURN ARRAY WITH
}
} else {
if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "history_po", "po_number", $validateId)) {
// validate??
$arrayToJs[1] = true;
// RETURN TRUE
echo json_encode($arrayToJs);
示例2: session_start
<?php
session_start();
include "main_includes/main_class.php";
$obj = new main_front_class();
if (isset($_GET['PinNumber']) && $_GET['PinNumber'] != "") {
$result_pop_up = $obj->MsgPopUp($_GET['PinNumber'], $_GET['Table']);
echo "<span class='response_span'>Name: " . $result_pop_up[0][$result_pop_up[1] . "_first_name"] . "</span><br/>";
if ($result_pop_up[1] != "admin") {
$office_name = $obj->Common_name_id('office', 'office_name', $result_pop_up[0][$result_pop_up[1] . "_office"]);
echo "Office: " . $office_name['office_name'] . "<br/>";
}
if ($result_pop_up[1] != 'admin') {
echo "<a href='profilepage.php?p=" . $result_pop_up[1] . "&val=" . $result_pop_up[0]['id'] . "&a=" . $_GET['url'] . "' class='response' title='" . $result_pop_up[1][1] . "'>View Profile</a>";
// http://localhost/tender/create_officer.php?val=16
}
}
if (isset($_GET['delid']) == 1 && $_GET['delid'] != " " && isset($_GET['tablename']) == 1 && $_GET['tablename'] != " ") {
$ss = $obj->DelRecord($_GET['delid'], $_GET['tablename'], $_GET['subtable1'], $_GET['subcolmn1'], $_GET['subtable2'], $_GET['subcolmn2']);
if ($ss == 0) {
//echo json_encode("yes");
echo "no";
} else {
echo "yes";
//echo json_encode("no");
}
}
if (isset($_GET['sn']) && $_GET['pi'] != "") {
$pp = $obj->CheckShortNameOnPurchase($_GET['sn'], $_GET['pi'], $_GET['for_hide_id']);
echo $pp;
}
示例3: session_start
<?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
示例4: session_start
<?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']);
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');
$list_firm = $obj->List_Drop_Down("consignee", "csign_firm_name", "id");
//$list_cnsignee = $obj->List_Drop_down_onSelection_noAjax("main_consignee","main_csign_name","main_csign_purchaser",$purchaser_detail['id']);
?>
示例5: session_start
<?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']);
}
//$result = $obj->common_update_allcolm('consignee','created_by','updated_by');
$result = $obj->common_update_allcolm2_order_by_short('consignee', 'created_by', 'created_table', 'updated_by', 'updated_table', 'csign_firm_name');
$_SESSION['key'] = mt_rand(1, 1000);
?>
<!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" />
<script type="text/javascript" src="main_includes/add_new_row.js"></script>
<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'>
<title>Update Firm : Rainbow Tender Managment</title>
<link rel="stylesheet" type="text/css" media="screen" href="main_css/jquery.ui.potato.menu.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="main_js/menu_bar/jquery.ui.potato.menu.js"></script>
<script type="text/javascript">
//var $k=jQuery.noConflict();
$(document).ready(function()
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:firm_update+(discovered-PC's+conflicted+copy+2013-05-05).php
示例6: session_start
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->attach_records($_GET['val'], $_GET['table'], $_GET['field']);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="main_includes/add_new_row.js"></script>
<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'>
<style type="text/css">
</style>
<title>Directors : Rainbow Tender Managment</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$('table#pur_cnt_multipels td a.delete').click(function()
{
var delid=$(this).attr('id');
var tablename="purchaser_director";
示例7: session_start
<?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
示例8: session_start
<?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']);
}
//$result = $obj->common_update_allcolm('tender','created_by','updated_by');
$result = $obj->common_update_allcolm2_tender('tender', 'created_by', 'created_table', 'updated_by', 'updated_table');
$_SESSION['key'] = mt_rand(1, 1000);
?>
<!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" />
<script type="text/javascript" src="main_includes/add_new_row.js"></script>
<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'>
<title>Update Tender : Rainbow Tender Managment</title>
<link rel="stylesheet" type="text/css" media="screen" href="main_css/jquery.ui.potato.menu.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="main_js/menu_bar/jquery.ui.potato.menu.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:edit_tender+(discovered-PC's+conflicted+copy+2013-05-05).php
示例9: session_start
<?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']);
$attachments = $obj->attach_records($_GET['id'], 'tender_attachments', 'tender_id');
//if($tender_details['tender_type']==1 && (!isset($_GET['spl'])))
if (!isset($_GET['spl'])) {
$limited_tender_firms = $obj->Limited_Tender_Firms($_GET['id']);
}
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';
示例10: main_front_class
<?php
$searchTerm = $_GET['term'];
require_once "main_includes/main_class.php";
$au_obj = new main_front_class();
$items = $au_obj->getAllTenderForSearch($_COOKIE['tp_id']);
if (isset($_COOKIE['tp_id']) == 1 && $_COOKIE['tp_id'] != '') {
$items = $au_obj->getAllTenderForSearch($_COOKIE['tp_id']);
//$items = $au_obj->getAllTenderForSearch($_GET['pid']);
$presidents = $items;
function filter($president)
{
global $searchTerm;
return stripos($president, $searchTerm) !== false;
}
print json_encode(array_values(array_filter($presidents, "filter")));
//print_r(json_encode($items));
}
示例11: session_start
<?php
session_start();
require_once "main_includes/main_class.php";
$obj = new main_front_class();
if (isset($_GET['ref']) == 1 && $_GET['ref'] == "logout") {
session_destroy();
$obj->redirect("index.php");
}
示例12: session_start
<?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_director = $obj->common_fetch_attachement('consignee_director', 'csign_id', $_GET['val']);
$result_attachment = $obj->common_fetch_attachement('csign_attachments', 'csign_id', $_GET['val']);
}
if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) {
$finalName = array();
$name = array();
for ($i = 0; $i < sizeof($_POST['titles']); $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/csign_attach/" . $finalName[$i]);
}
if (isset($_GET['val']) & $_GET['val'] != "") {
$update_result = $obj->consignee_update($_POST, $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table']);
$obj->ALertMessage("Firm updated successfully", $update_result);
$obj->redirect("firm_update.php");
} else {
示例13: session_start
<?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']);
}
?>
<!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;
示例14: session_start
<?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 = [";
示例15: session_start
<?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']);
}
?>
<!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" />
<script type="text/javascript" src="main_includes/add_new_row.js"></script>
<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'>
<title>Welcome in Rainbow Tender</title>
<link rel="stylesheet" type="text/css" media="screen" href="main_css/jquery.ui.potato.menu.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="main_js/menu_bar/jquery.ui.potato.menu.js"></script>
<script type="text/javascript">
(function($) {
$(document).ready(function(){
$('#menu1').ptMenu();
});
})(jQuery);