本文整理汇总了PHP中main_front_class::common_fetch_attachement方法的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class::common_fetch_attachement方法的具体用法?PHP main_front_class::common_fetch_attachement怎么用?PHP main_front_class::common_fetch_attachement使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main_front_class
的用法示例。
在下文中一共展示了main_front_class::common_fetch_attachement方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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
示例2: 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 = [";
示例3: foreach
echo $v['year'];
?>
</td>
<td style="border:0px solid #666; height:35px;"><?php
echo $v['title'];
?>
</td>
<td style="border:0px solid #666; height:35px;"><?php
echo $issued_by = $obj->Title_specs_issued_by($v['issued']);
if ($v['issued'] == 10) {
echo '/' . $v['other_issued'];
}
?>
</td>
<?php
$result_attachment = $obj->common_fetch_attachement('specification_attachements', 'specs_id', $v['id']);
$s_nj = 1;
?>
<td style="border:0px solid #666; min-height::35px; height:auto; padding:2px;">
<?php
if (is_array($result_attachment) && $result_attachment[0] != '') {
foreach ($result_attachment as $mla) {
?>
<font style="color:#C00;">[<?php
echo $s_nj;
?>
] <a target="_blank" style="color:#990000;" href="attachements/specification/<?php
echo $mla['file_real_name'];
?>
"><?php
echo $mla['file'];
示例4: 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']) && $_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 {
示例5: array
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_single($_GET['p'], 'tender_firm_product');
if (isset($_GET['spl']) && $_GET['spl'] != '') {
$record_update = $obj->Firm_Data_Printing_Time($_GET['spl']);
$result_attachment = $obj->common_fetch_attachement('tender_quoted_attachments', 'tender_firm_id', $_GET['spl']);
$quoted_by_name = $obj->NameOfLogedInPin($_SESSION['pin_table'], $_SESSION['pin_id']);
}
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/Tender_Quoted/" . $finalName[$i]);
}
$save_bid = $obj->SaveBidNumberInFirm_PRINTING_FIRM($_POST['bid_number'], $finalName, $name, $_POST['titles'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['c_rates'], $_GET['spl'], $_GET['id']);
if ($save_bid) {
示例6: 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_po', $_GET['val']);
$corect_date_format = explode("-", $result['po_due_date']);
$final_date = $corect_date_format[2] . '-' . $corect_date_format[1] . '-' . $corect_date_format[0];
$result_product = $obj->common_fetch_attachement_withItem_PO_HISTORY('history_po_firm_product', 'po_id', $_GET['val']);
$result_attachment = $obj->common_fetch_attachement('history_po_attachements', 'po_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['po_office']);
$tender_purchaser = $obj->Common_name_id('create_purchaser', 'purchaser_short_name', $result['po_purchaser']);
$tender_firm = $obj->Common_name_id('consignee', 'csign_short_name', $result['po_firm']);
//$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
示例7: 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
示例8: 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('create_purchaser', $_GET['val']);
$result_director = $obj->common_fetch_attachement('purchaser_director', 'purchase_id', $_GET['val']);
$result_attachment = $obj->common_fetch_attachement('purchase_attachments', 'purchase_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/purchaser_attach/" . $finalName[$i]);
}
if (isset($_GET['val']) == 1 && $_GET['val'] != "") {
$update_purchaser = $obj->purchase_update($_POST, $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table']);
if ($update_purchaser == 1) {
$obj->ALertMessage("Purchaser Updated Successfully", $update_purchaser);
$obj->redirect("purchaser_update.php");
示例9: array
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';
}
$result_common_pending = $obj->common_fetch_attachement('table_after_pending_status', 'tender_id', $_GET['id']);
$attachments = $obj->attach_records($_GET['id'], 'tender_attachments', 'tender_id');
$result_attachment = $obj->AttachementsInTenderRate($_GET['id']);
$attachements_after_pending = $obj->common_fetch_attachement('attachements_after_pending_status', 'tender_id', $_GET['id']);
$result_tender_bid_attachemnsts = $obj->attach_recordsXYZ($_GET['id'], 'tender_bid_attachements', 'tender_id');
/*if($tender_details['firm_status']==1 && $tender_details['status']!=0)
{
$result_attachment_all = $obj->AttachementsInTenderRateWithoutLimit($_GET['id']);
}*/
if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) {
$finalName = array();
$name = array();
for ($i = 0; $i < sizeof($_FILES['files']); $i++) {
$name[$i] = $_FILES['files']['name'][$i];