当前位置: 首页>>代码示例>>PHP>>正文


PHP main_front_class::ALertMessage方法代码示例

本文整理汇总了PHP中main_front_class::ALertMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class::ALertMessage方法的具体用法?PHP main_front_class::ALertMessage怎么用?PHP main_front_class::ALertMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在main_front_class的用法示例。


在下文中一共展示了main_front_class::ALertMessage方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

&val=<?php 
    echo $_GET['val'];
    ?>
";
		</script>
  <?php 
}
if (isset($_POST['Status_Submit'])) {
    $changed_status_result = $obj->ChangeCommonStatus($_GET['id'], $_POST['status_button'], 'tender', $tender_details['firm_status']);
    if ($changed_status_result == 1) {
        if ($_POST['status_button'] == 0) {
            $message = "Status changed to Uploaded";
        } else {
            $message = "Status changed to Rate Given";
        }
        $obj->ALertMessage($message, $changed_status_result);
        $obj->redirect('tender_list.php');
    } else {
        if ($changed_status_result == 1345) {
            $message = "Please add firms to change in Rate Given";
            $obj->ALertMessage($message, 1);
        } else {
            $message = 'There is some error';
            $obj->ALertMessage($message, $changed_status_result);
        }
    }
}
if (isset($_POST['save_firm_printed_rate_submit']) && $_POST['key45'] == $_SESSION['key45']) {
    $result_bid_in_printed = $obj->BidNumberPrintedForm($_GET['id'], $_POST['select_firms'], $_POST['text_box_bid_number'], $_SESSION['pin_id'], $_SESSION['pin_table']);
    $obj->redirect("tender_quot_new.php?id=" . $_GET['id'] . "&val=" . $_GET['val']);
}
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:tender_quot_new+(discovered-PC's+conflicted+copy+2013-05-05).php

示例2: array

$list_purchaser = $obj->List_Drop_Down("create_purchaser", "purchaser_short_name", "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_attach_history/" . $finalName[$i]);
    }
    if (isset($_GET['val']) & $_GET['val'] != "") {
        $update_result = $obj->tender_registration_update_history_wale($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']);
        if ($update_result == 1) {
            $obj->ALertMessage("Tender [History] updated", $update_result);
            $obj->redirect("edit_history.php");
        }
    } else {
        //$tender = $obj->tender_registration($_POST,$_SESSION['pin_id'],$_SESSION['pin_table']);
        $tender = $obj->tender_registration_history_wala($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Tender [History] registered", $tender);
    }
}
$_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" />
<link rel="stylesheet" href="main_css/main_css.css"/>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:history.php

示例3:

    			$finalName[$i]  = $newName.".".$ext;
    			move_uploaded_file($tmp_name,"attachements/items_attach/".	$finalName[$i]);
    		}
    			else
    			{
    				$name[$i]="No_Download";
    				$finalName[$i]="No_Download";
    			}
    		}
    		
    		
    	}*/
    //$result = $obj->store_items_attachments($_POST,$finalName,$name,$_SESSION['pin_id'],$_SESSION['pin_table']);
    if (isset($_GET['val']) == 1 && $_GET['val'] != "") {
        $update_item = $obj->Update_Item_New($_POST, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']);
        $obj->ALertMessage("Item Updated Successfully", $update_item);
        $obj->redirect("item_update.php");
    } else {
        $result = $obj->store_items_attachments($_POST, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Item category registered", 1);
    }
}
$_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" />

<link rel="stylesheet" href="main_css/main_css.css"/>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:item_manager.php

示例4: array

    $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 {
        $consignee = $obj->consignee_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Firm registered", $consignee);
    }
}
$_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"/>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:firm_registration.php

示例5:

        $ext = $obj->getExtension($name[$i]);
        $newName = $obj->nameGen();
        $finalName[$i] = $newName . "." . $ext;
        move_uploaded_file($tmp_name, "attachements/officer_attach/" . $finalName[$i]);
    }
    //----ATTACHEMENTS_END-----
    if (isset($_GET['val']) & $_GET['val'] != "") {
        if ($img_final_name == "no_pic.jpg") {
            $img_final_name = $result['officer_photo'];
        }
        $update_result = $obj->officer_update($_POST['officer_office'], $_POST['officer_first_name'], $_POST['officer_last_name'], $_POST['officer_user_name'], $_POST['officer_password'], $_POST['officer_pin'], $img_final_name, $_POST['officer_mail'], $_POST['officer_mobile'], $_POST['officer_address'], $_POST['titles'], $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']);
        if ($update_result == 1) {
            if ($_SESSION['rb_power'] == "officer") {
                $obj->redirect("demo.php");
            } else {
                $obj->ALertMessage("Officer updated successfully", $update_result);
                $obj->redirect("officer_update.php?pid=" . $_GET['pid']);
            }
        }
    } else {
        $opt = $obj->officer_registration($_POST['officer_office'], $_POST['officer_first_name'], $_POST['officer_last_name'], $_POST['officer_user_name'], $_POST['officer_password'], $_POST['officer_pin'], $img_final_name, $_POST['officer_mail'], $_POST['officer_mobile'], $_POST['officer_address'], $_POST['titles'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']);
        $obj->ALertMessage("Officer registered", $opt);
    }
}
$_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>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:create_officer+(discovered-PC's+conflicted+copy+2013-05-05).php

示例6:

        }
        $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/specification/" . $finalName[$i]);
    }
    //----ATTACHEMENTS_END-----
    if (isset($_GET['val']) & $_GET['val'] != "") {
        $update_result = $obj->Specification_update($_POST['specification_no'], $_POST['part'], $_POST['revision'], $_POST['reaffirmed'], $_POST['year'], $_POST['title'], $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['issued'], $_POST['other_issued']);
        if ($update_result == 1) {
            if ($_SESSION['rb_power'] == "officer") {
                $obj->redirect("demo.php");
            } else {
                $obj->ALertMessage("Specification updated successfully", $update_result);
                $obj->redirect("edit_specs.php");
            }
        }
    } else {
        if (sizeof($_FILES['files']['name']) == $counterXD) {
            $obj->ALertMessage("Atleast upload one file to save", 1);
        } else {
            $opt = $obj->specification_registration($_POST['specification_no'], $_POST['part'], $_POST['revision'], $_POST['reaffirmed'], $_POST['year'], $_POST['title'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['issued'], $_POST['other_issued']);
            $obj->ALertMessage("Specification registered", $opt);
        }
    }
}
$_SESSION['key'] = mt_rand(1, 1000);
?>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:30,代码来源:add_specs+(discovered-PC's+conflicted+copy+2013-05-05).php

示例7: array

$list_purchaser = $obj->List_Drop_Down("create_purchaser", "purchaser_short_name", "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_attach/" . $finalName[$i]);
    }
    if (isset($_GET['val']) & $_GET['val'] != "") {
        $update_result = $obj->tender_registration_update($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']);
        if ($update_result == 1) {
            $obj->ALertMessage("Tender Updated ", $update_result);
            $obj->redirect("edit_tender.php");
        }
    } else {
        //$tender = $obj->tender_registration($_POST,$_SESSION['pin_id'],$_SESSION['pin_table']);
        $tender = $obj->tender_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Tender registered", $tender);
    }
}
$_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" />
<link rel="stylesheet" href="main_css/main_css.css"/>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:fill_tender+(discovered-PC's+conflicted+copy+2013-05-05).php

示例8:

        $ext = $obj->getExtension($name[$i]);
        $newName = $obj->nameGen();
        $finalName[$i] = $newName . "." . $ext;
        move_uploaded_file($tmp_name, "attachements/employee_attach/" . $finalName[$i]);
    }
    //----ATTACHEMENTS_END-----
    if (isset($_GET['val']) && $_GET['val'] != "") {
        if ($img_final_name == "no_pic.jpg") {
            $img_final_name = $result['employee_photo'];
        }
        $update_result = $obj->employee_update($_POST['employee_first_name'], $_POST['employee_last_name'], $_POST['employee_office'], $_POST['employee_user_name'], $_POST['employee_password'], $_POST['employee_pin'], $img_final_name, $_POST['employee_mail'], $_POST['employee_mobile'], $_POST['employee_address'], $_POST['titles'], $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']);
        if ($update_result == 1) {
            if ($_SESSION['rb_power'] == "employee") {
                $obj->redirect("demo.php");
            } else {
                $obj->ALertMessage("Employee updated successfully", $update_result);
                $obj->redirect("employee_update.php?pid=" . $_GET['pid']);
            }
        }
    } else {
        $opt = $obj->employe_registration($_POST['employee_first_name'], $_POST['employee_last_name'], $_POST['employee_office'], $_POST['employee_user_name'], $_POST['employee_password'], $_POST['employee_pin'], $img_final_name, $_POST['employee_mail'], $_POST['employee_mobile'], $_POST['employee_address'], $_POST['titles'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']);
        $obj->ALertMessage("Employee registered", $opt);
    }
}
$_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>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:create_employee+(discovered-PC's+conflicted+copy+2013-05-05).php

示例9: array

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/main_csign_attach/".$finalName[$i]);
    	}*/
    if (isset($_GET['val']) & $_GET['val'] != "") {
        $update_result = $obj->main_consignee_update($_POST, $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table']);
        if ($update_result == 1) {
            $obj->ALertMessage("Consignee Updated Successfully", $update_result);
            $obj->redirect("main_cnsig_update.php?pid=" . $_GET['pid']);
        }
    } else {
        $consignee = $obj->main_consignee_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Consignee registered", $consignee);
    }
}
$_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>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:30,代码来源:main_cnsig_registration.php

示例10:

        $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_attach_history/" . $finalName[$i]);
    }
    if (isset($_GET['val']) & $_GET['val'] != "") {
        $update_result = $obj->tender_registration_update($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']);
        if ($update_result == 1) {
            $obj->redirect("edit_tender.php");
        }
    } else {
        //$tender = $obj->tender_registration($_POST,$_SESSION['pin_id'],$_SESSION['pin_table']);
        $tender = $obj->tender_registration_history_wala($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Tender [History] registered", $tender);
    }
}
$_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" />
<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'>
<link href="styles.css" rel="stylesheet" />
<title><?php 
if (isset($_GET['val'])) {
    echo "Update";
} else {
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:Xhistory.php

示例11: array

}
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");
        }
    } else {
        $purchaser = $obj->purchaser_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
        $obj->ALertMessage("Purchaser registered", $purchaser);
    }
}
$_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>
开发者ID:kalpishs,项目名称:tender_managment,代码行数:30,代码来源:create_purchaser.php

示例12: array

	
}*/
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];
        $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/attachements_after_pending_status/" . $finalName[$i]);
    }
    $result_after_padding = $obj->Store_After_Pending_Status($_GET['id'], $_POST['status_after_pending'], $_POST['remark_after_pending'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']);
    if ($result_after_padding == 1) {
        $obj->ALertMessage("Remark Registered", $result_after_padding);
        ?>
  <script type="text/javascript">
	window.location="tender_quot_pending.php?id=<?php 
        echo $_GET['id'];
        ?>
&val=<?php 
        echo $_GET['val'];
        ?>
";
		</script>
  <?php 
    } else {
        $obj->ALertMessage("Remark Registered", $result_after_padding);
    }
}
开发者ID:kalpishs,项目名称:tender_managment,代码行数:30,代码来源:tender_quot_pending.php


注:本文中的main_front_class::ALertMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。