本文整理汇总了PHP中main_front_class::nameGen方法的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class::nameGen方法的具体用法?PHP main_front_class::nameGen怎么用?PHP main_front_class::nameGen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main_front_class
的用法示例。
在下文中一共展示了main_front_class::nameGen方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$product_details = $obj->attach_records_products($_GET['id'], 'tender_firm_product', 'tender_id');
$attachments = $obj->attach_records($_GET['id'], 'tender_attachments', 'tender_id');
$result_attachment = $obj->AttachementsInTenderRate($_GET['id']);
//$result_tender_bid_attachemnsts = $obj->common_fetch_attachement('tender_bid_attachements','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_uploaded']) && $_POST['key'] == $_SESSION['key']) {
$finalName = array();
$name = array();
for ($i = 0; $i < sizeof($_FILES['files']); $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/Rate_On_Print/" . $finalName[$i]);
}
$result2 = $obj->store_printed_firms_X($_GET['id'], 'tender_rate_attachements', $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
?>
<script type="text/javascript">
window.location="tender_quot_new.php?id=<?php
echo $_GET['id'];
?>
&val=<?php
echo $_GET['val'];
?>
";
</script>
<?php
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:tender_quot_new+(discovered-PC's+conflicted+copy+2013-05-05).php
示例2: SimpleImage
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);
$thumb->resize(190, 180);
$thumb->save("photo/officer/thumb/" . $img_final_name);
}
} else {
$img_final_name = "no_pic.jpg";
}
//-------PIC UPLAOD END-----------------
//----ATTACHEMENTS-------
$finalName = array();
$name = array();
for ($i = 0; $i < sizeof($_POST['titles']); $i++) {
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:create_officer+(discovered-PC's+conflicted+copy+2013-05-05).php