本文整理匯總了PHP中main_front_class::Update_Tender_Attachements_bid_wale方法的典型用法代碼示例。如果您正苦於以下問題:PHP main_front_class::Update_Tender_Attachements_bid_wale方法的具體用法?PHP main_front_class::Update_Tender_Attachements_bid_wale怎麽用?PHP main_front_class::Update_Tender_Attachements_bid_wale使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類main_front_class
的用法示例。
在下文中一共展示了main_front_class::Update_Tender_Attachements_bid_wale方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->attach_recordsXYZ($_GET['val'], $_GET['table'], $_GET['field']);
}
if (isset($_POST['save'])) {
if ($_FILES['file']['size'] != 0) {
$name = $_FILES['file']['name'];
$tmp_name = $_FILES['file']['tmp_name'];
$ext = $obj->getExtension($name);
$newName = $obj->nameGen();
$finalName = $newName . "." . $ext;
move_uploaded_file($tmp_name, "attachements/tender_bid_attach/" . $finalName);
} else {
$finalName = 0;
$name = 0;
}
$result = $obj->Update_Tender_Attachements_bid_wale($_POST['titles'], $_POST['other_title'], $finalName, $name, $_POST['id_firm_attachement']);
if ($result == 1) {
?>
<script>
window.location="Tender_bid_old_attachemnents.php?val=<?php
echo $_GET['val'];
?>
&table=<?php
echo $_GET['table'];
?>
&field=<?php
echo $_GET['field'];
?>
";
</script>
<?php
開發者ID:kalpishs,項目名稱:tender_managment,代碼行數:31,代碼來源:Tender_bid_old_attachemnents+(discovered-PC's+conflicted+copy+2013-05-05).php