本文整理汇总了PHP中main_front_class::Update_Tender_Attachements_History方法的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class::Update_Tender_Attachements_History方法的具体用法?PHP main_front_class::Update_Tender_Attachements_History怎么用?PHP main_front_class::Update_Tender_Attachements_History使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main_front_class
的用法示例。
在下文中一共展示了main_front_class::Update_Tender_Attachements_History方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if (isset($_GET['val']) && $_GET['val'] != "") {
$result = $obj->attach_records($_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_attach_history/" . $finalName);
} else {
$finalName = 0;
$name = 0;
}
$result = $obj->Update_Tender_Attachements_History($_POST['titles'], $_POST['other_title'], $finalName, $name, $_POST['id_firm_attachement']);
if ($result == 1) {
?>
<script>
window.location="history_tender_old_attacements_record.php?val=<?php
echo $_GET['val'];
?>
&table=<?php
echo $_GET['table'];
?>
&field=<?php
echo $_GET['field'];
?>
";
</script>
<?php