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


PHP Titulo_Maestro函数代码示例

本文整理汇总了PHP中Titulo_Maestro函数的典型用法代码示例。如果您正苦于以下问题:PHP Titulo_Maestro函数的具体用法?PHP Titulo_Maestro怎么用?PHP Titulo_Maestro使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: require

<?
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("Images Manager");
define(IMAGES_DIR,"/stp_images/");
define(FS_IMAGES_DIR,"../../stp_images/");
$db = $database;

#Guardando las imagenes
if($f) {

	for ($w=0; $w < count($f); $w++) {
	
		if(strcmp(trim($f_name[$w]),"")) {
			copy ($f[$w], FS_IMAGES_DIR.$f_name[$w]);
			//echo "insert into STP_IMAGES (st_id,image_file,image_name) VALUES ($subtype,'$f_name[$w]','$t[$w]')";
			mysql_db_query($db,"insert into STP_IMAGES (st_id,image_file,image_name) VALUES ($subtype,'$f_name[$w]','$t[$w]')");
		}
	}  

	echo mysql_error();

	$update = "UPDATE SUB_TIPO_PRODUCTOS SET DESC_SUB_TIPO_PRODUCTO='$desc' WHERE ID_SUB_TIPO_PRODUCTO=$subtype";
	mysql_db_query($db,$update);
	echo mysql_error();

	if (!mysql_error()) {
		//Alerta("Done !");
	} else {
		Alerta("The process had errors");
	}		
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:images_manager.php

示例2: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("Orders List / Waiting Delivery");
?>
<SCRIPT language=JavaScript src="./date.js"></SCRIPT>
<!-- CONTENIDO -->
<center>

<script>
	function DelO(oid) {
		if (confirm("Do you really wnt to delete the order [No. "+oid+"]")) {
			OpenW('./del_order.php?oid='+oid,'350','400','yes');
		}
	}	
	
	function Mark_all() {
		var i;
		for(i=0; i<document.list.elements.length; i++) {
			document.list.elements[i].checked=1;
		}
	}	
	</script>


<table bgcolor=cecece border =0 cellpadding=3 cellspacing=1>
  <form name=fecha>
  <tr bgcolor=ffffff>
    <td>Delivery Since<br>
      <input type="text" name="f1" size=10 value="<?echo $f1?>">
<A href="javascript:show_calendar('fecha.f1');"><IMG
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:delivery.php

示例3: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("ADMIN PRODUCT PRICES");
     
if ($flag) {
	for ($i=0; $i<count($bunch); $i++) {
		$sql_updateproducts = "
			UPDATE 	PRODUCTOS 
			SET 	UNIT_COST=$bunch[$i]
					, QBCODE='$qbcode[$i]' 
			WHERE 	ID_PRODUCTO=$id[$i]
			";
		mysql_db_query($db,$sql_updateproducts);
		$sql_updateproductsprices = "
			UPDATE 	PRODUCTOS P
					, SIZES S 
			SET 	PRICE_STEM = CASE 
			WHEN 	P.UNIT = 'S' 
					THEN (((P.UNIT_COST * P.STEMS_PER_BUNCH * P.BUNCHES_BOX/ $markup) + S.FEDEX_COST) *1.03)/( P.STEMS_PER_BUNCH * P.BUNCHES_BOX) 
			WHEN 	P.UNIT = 'B' 
					THEN ROUND((((P.UNIT_COST * P.BUNCHES_BOX/ $markup) + S.FEDEX_COST) * 1.03)/( P.BUNCHES_BOX),2)
			END 
			WHERE	P.`ID_SIZE` = S.`ID_SIZE` AND P.`ID_PRODUCTO`=$id[$i]
			";
		//echo $sql_updateproductsprices;	
		mysql_db_query($db,$sql_updateproductsprices) or die(mysql_error());
		mysql_db_query($db,"UPDATE PRODUCTOS  SET `PRICE_BUNCH`= CASE WHEN UNIT='S' THEN ROUND(`PRICE_STEM`*`STEMS_PER_BUNCH`,2) WHEN UNIT='B' THEN ROUND(`PRICE_STEM`,3) END , `LAST_MARKUP`=$markup, `LAST_UPDATE` = NULL WHERE `ID_PRODUCTO`=$id[$i]") or die(mysql_error());
		if (trim(${"d".$id[$i]})) {
				mysql_db_query($db,"delete  from PRODUCTOS where ID_PRODUCTO='".$id[$i]."'");
		}
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:update_prices.php

示例4: require

<?session_start();
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("New Product");


if ($desc) {

	#################################### DELIVERY DAY
	
	if ($f1) { 
			$dtmp = mysql_db_query($database,"select UNIX_TIMESTAMP('$f1') FROM PRODUCTOS limit 1");
			echo mysql_error();			$dtmp = mysql_fetch_row($dtmp);
			$dd = $dtmp[0];
	} 
			$current_day = date("w",$dd);
	$day_charge="0";

	$consulta_day_charge_shopping_cart = <<< EOCS
	        select DAY_CHARGE from WEEKDAYS where ID_WEEKDAY = $current_day+1
EOCS;

	$result_consulta_day_charge_shopping_cart = mysql_db_query($database,$consulta_day_charge_shopping_cart,$shopping_db_link);

	$fila_day_charge_shopping_cart = mysql_fetch_array ($result_consulta_day_charge_shopping_cart);
	$day_charge = $fila_day_charge_shopping_cart["DAY_CHARGE"];

	mysql_free_result ($result_consulta_day_charge_shopping_cart);


	#EJECUTAMOS EL INSERT EN LA TABLA SHOPPING CART CON PARAMETROS ID_SESSION, ID_PRODUCTO, DAY_CHARGE, QUANTITY Y PRICE
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:new_product.php

示例5: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("ADMIN ITEMS");


    
     
if ($flag) {
		
foreach($id as $k=>$i){		
		mysql_db_query($db,"UPDATE PRODUCTOS SET QBCODE='$qbcode[$i]',GENERIC_NAME='$generic_name[$i]',delay='$delay[$i]' WHERE ID_PRODUCTO=$id[$i]") or die(mysql_error());
		if (trim(${"d".$id[$i]})) {
				mysql_db_query($db,"delete  from PRODUCTOS where ID_PRODUCTO='".$id[$i]."'");
		}
				
				
		if (trim(${"s".$id[$i]})) {
			//echo "update PRODUCTOS SET ID_PRODUCT_STATUS=1 where ID_PRODUCTO='".$id[$i]."'<br>";
			mysql_db_query($db,"update PRODUCTOS SET ID_PRODUCT_STATUS=1 where ID_PRODUCTO='".$id[$i]."'");
		} else {
			//echo "update PRODUCTOS SET ID_PRODUCT_STATUS=0 where ID_PRODUCTO='".$id[$i]."'<br>";
			mysql_db_query($db,"update PRODUCTOS SET ID_PRODUCT_STATUS=0 where ID_PRODUCTO='".$id[$i]."'");		
		}		
		
		echo mysql_error();
	}
}
    
     
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:28,代码来源:update_items.php

示例6: require_once

 */
//require_once("../../utilidades/sesiones.php"); 	// esta es la libreria en donde se crean las sesiones
//validarSesion();  // funcion que abre la sesion para este archivo
require_once("../../utilidades/sesiones.php"); 	
validarSesion();
require ('../../functions.php'); // en este archivo esta el esquema de base de datos.
include('../head_admin.php'); // en este archivo se encuentra el cabezote.


if (!$_SESSION["OID"]) {
	$_SESSION["OID"]=date("YmdHis");
}


$vendedor=$_SESSION['name'];
Titulo_Maestro("Take Phone Orders");
$today  = mktime (0,0,0,date("m"),date("d"),date("Y"));

?>
<SCRIPT language=JavaScript src="./date.js"></SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<script>
	function Validar() {
		var today = '<?echo date("Y-m-d")?>';
		with (document.as) {
			if (qty.value=='' || it.selectedIndex==0 || (dd.selectedIndex==0 && f1.value=='')) {
				alert('All fields are required !!!');
			} else if (today > f1.value && f1.value != '') { 
				alert ('Delivery date is wrong date');
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:take_orders.php

示例7: Titulo_Maestro

<?php

require '../../functions.php';
include '../head_admin.php';
Titulo_Maestro("CUSTOMERS MAIN");
?>

<?php 
if (isset($_POST['disable'])) {
    mysql_select_db($db, $shopping_db_link);
    foreach ($_POST['disable'] as $key => $value) {
        if ($value == 1) {
            mysql_query("UPDATE CLIENTS SET STATUS=1 WHERE ID_CLIENT={$key} ", $shopping_db_link) or die(mysql_error());
            mysql_query("UPDATE CLIENTS SET confirmed=0 WHERE ID_CLIENT={$key} ", $shopping_db_link) or die(mysql_error());
        }
    }
}
if (isset($_POST['enable'])) {
    mysql_select_db($db, $shopping_db_link);
    $subject = "Your FarmsTogo on line account has been activated ";
    $headers = "From: FarmsToGo.com <orders@farmstogo.com> \r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n";
    // Send
    foreach ($_POST['enable'] as $key => $value) {
        if ($value == 1) {
            $query_mail = "SELECT CLIENT_NAME,CLIENT_EMAIL FROM CLIENTS WHERE ID_CLIENT={$key} AND emailed=0 LIMIT 1 ";
            $mail = mysql_query($query_mail, $shopping_db_link) or die(mysql_error());
            $row_mail = mysql_fetch_assoc($mail);
            if (mysql_num_rows($mail)) {
                mysql_query("UPDATE CLIENTS SET confirmed=1,emailed=1 WHERE ID_CLIENT={$key} ", $shopping_db_link) or die(mysql_error());
                $message = "Dear " . $row_mail['CLIENT_NAME'] . ",<br />\nThank you for registering with Farms To Go .com. You can now start ordering on line and taking advantage of our resale prices and specials.\nPlease go to www.farmstogo.com <http://www.farmstogo.com/>   login now and start enjoying a world of freshness great prices and quality service!<br />\nKind Regards <br />\n<br />\nMiguel Saavedra<br /> \nCEO Farmstogo.com";
                mail('it@flowerdealers.com, miguels@flowerdealers.com,' . $row_mail['CLIENT_EMAIL'], $subject, $message, $headers);
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:customers.php

示例8: include

<? 
	session_start();
	include('../../functions.php'); 
   include('../head_admin.php'); 
   Titulo_Maestro("Update Product");
   $source=(isset($_GET['source']))?$_GET['source']:'update_prices.php';
   mysql_select_db($db,$shopping_db_link) or die (mysql_error());
   $query_fedex="select DISTINCT ID_SIZE,FEDEX_COST FROM SIZES";
   $fedex=mysql_query($query_fedex,$shopping_db_link) or die(mysql_error());
   $row_fedex=mysql_fetch_assoc($fedex);
    echo "<script> \n";
	echo "var fedex= new Array; \n";
	do{
	echo "fedex[".$row_fedex[ID_SIZE]."]=".$row_fedex[FEDEX_COST]."; \n ";
	} while ($row_fedex=mysql_fetch_assoc($fedex));
	echo "</script> \n";
?>
<body bgcolor="#FFFFFF">

<?
if ($ptx) {

	$CQuery = <<< EOP
UPDATE PRODUCTOS SET ID_SUB_TIPO_PRODUCTO='$st' , ID_SIZE='$sz' , 
ID_MARKET='$mk' , PRODUCTO='$product' , STEMS_PER_BUNCH=$stems_bunch , PRICE_BUNCH='$price',
BUNCHES_BOX='$bch_box',  ID_PRODUCT_STATUS='$status', COLOR_VARIETY_CHOICE='$dc' , QBCODE='$qbcode', minimal_box='$min_box',UNIT='$unit', UNIT_COST=$unit_cost
where ID_PRODUCTO=$id
EOP;
		#echo $CQuery;
		mysql_db_query($db,$CQuery);
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:30,代码来源:edt_product.php

示例9: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("TESTIMONIALS");

if (!$flag) {
?>

<html>
<head>
<title>Testimonials</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<style>

TD
{
    COLOR: #000000;
    FONT-FAMILY: Trebuchet Ms,Arial,Helvetica;
    FONT-SIZE: 11px
}

TH
{
    COLOR: #000000;
    FONT-FAMILY: Trebuchet Ms,Arial,Helvetica;
    FONT-SIZE: 11px;
    FONT-WEIGHT: Bold;
}
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:30,代码来源:nt.php

示例10: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');

$database = "flowerde_ff2gv";
$db = "flowerde_ff2gv";
$h2 = "mysqlv.temp1000.dreamhosters.com";
$u2 = "miguels";
$pw2 = "patricia";
$database2 = "ff2gv";
$db2 = "ff2gv";
$rosefarms=mysql_connect($h,$u,$pw) or die(mysql_error());
mysql_select_db($database,$rosefarms) or die(mysql_error());     

Titulo_Maestro("CLONE MARKETS FROM TEMPLATE");
foreach($_POST as $nombre_campo => $val){ 
   $asignacion = "\$" . $nombre_campo . "='" . $val . "';"; 
   eval($asignacion);
      }
///Funcion para clonar mercados
if(isset($id)){
foreach($_POST['id']  as $i => $valor ){
    $bun=$_POST['bunch'][$i];
	$qb=$_POST['qbcode'][$i];
	if (isset($nm[$i])) {
	$qry="insert into PRODUCTOS SELECT '',ID_SUB_TIPO_PRODUCTO , ID_TIPO_PRODUCTO , ID_SIZE , ".$nmk." , PRODUCTO , PRICE_STEM , STEMS_PER_BUNCH ,'".$bun."', BUNCHES_BOX , DELIVERY_DELAY , ID_PRODUCT_STATUS , COLOR_VARIETY_CHOICE ,'".$qb."', minimal_box,GENERIC_NAME 
FROM PRODUCTOS
WHERE ID_PRODUCTO='".$valor."'";
echo $qry."\n\n";	
			mysql_query($qry,$rosefarms) or die(mysql_error());
		}
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:change_market.php

示例11: require

<?
//require ('../../functions.php'); 
require ('../../s/include/functions.php'); 
//include('../head_admin.php');
Titulo_Maestro("Add Images");
$base = "../../stp_images/";


while (list ($key,$val) = @each ($_POST['del'])) {
		mysql_db_query($db,"insert into event_images (id_event,image) VALUES ('$id','$val')");
		//echo "insert into event_images (id_event,image) VALUES ('$id','$val')";
	?>
	<script>
		<!--
		//alert('Images added');
		this.opener.location.reload();
		window.close();			
		-->	
	</script>
	<?
}

?>
<style>
BODY
{
    COLOR: #000000;
    FONT-FAMILY: Arial,Helvetica,Univers,Zurich BT;
    FONT-SIZE: 12px
}
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:30,代码来源:admin_files.php

示例12: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("Company Search Report");
?>
<SCRIPT language=JavaScript src="./date.js"></SCRIPT>
<!-- CONTENIDO -->
<center>

<script>
<!--
	function DelO(oid) {
		if (confirm("Do you really want to delete the order [No. "+oid+"]")) {
			OpenW('./del_order.php?oid='+oid,'350','400','yes');
		}
	}	
	
	function Mark_all() {
		var i;
		for(i=0; i<document.list.elements.length; i++) {
			document.list.elements[i].checked=1;
		}
	}
-->		
</script>


<table bgcolor=cecece border =0 cellpadding=3 cellspacing=1>
	<form name=fecha>
		<tr bgcolor=ffffff>
			<td>
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:main_company_report.php

示例13: include

// +------------------------------------------------------------------------+
// |                       Llamado a las Bibliotecas requeridas				|
// +------------------------------------------------------------------------+
	
	require_once("../../forms/config/bd.conf"); 			// Get the connection variables
	require_once("../../forms/lib/database.php"); 							// Get the DataBase extended functions	
// +-----------------------------------------------------------------------+
// |  Incializa las plantillas y establece la conexión con la BD		   |
// +-----------------------------------------------------------------------+

	$db = DB::connect($dsn, DB_CONNECT_MODE); 
	$db->setFetchMode(DB_FETCHMODE_ASSOC);
	
include('../../includes/head.php');

Titulo_Maestro ("VenMaster Orders to FD Delivery");
	
if (!$flag) { ?>
	<form action="<? echo $PHP_SELF ?>" method="post" enctype="multipart/form-data">
	<table>
		<tr>
			<td><b><center>Aplicativo para subir archivos</b></center></td>
		</tr>
		<tr>
			<td>Archivo </td>
			<td><input type="file" name="arch" size=25> </td>
		</tr>
		<tr>
			<td>
				<input type="submit" name="send" value="Subir Archivo ">
				<input type="hidden" name="flag" value="1">
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:upload.php

示例14: mysql_query

        }
        if (isset($_POST['STATUS'][$key]) && $_POST['STATUS'][$key] == 1) {
            $query = "UPDATE TIPO_PRODUCTOS SET STATUS= 1 where ID_TIPO_PRODUCTO={$key}";
            mysql_query($query, $shopping_db_link) or die(mysql_error());
        } else {
            $query = "UPDATE TIPO_PRODUCTOS SET STATUS= 0 where ID_TIPO_PRODUCTO={$key}";
            mysql_query($query, $shopping_db_link) or die(mysql_error());
        }
    }
}
mysql_select_db($db, $shopping_db_link);
$query_tproduct = "select * from TIPO_PRODUCTOS order by ID_TIPO_PRODUCTO";
$tproduct = mysql_query($query_tproduct, $shopping_db_link) or die(mysql_error());
$row_tproduct = mysql_fetch_assoc($tproduct);
include '../head_admin.php';
Titulo_Maestro("ADMIN TIPO PRODUCTOS");
?>
<script>
function valida_form1(){
if(document.form1.TIPO_PRODUCTO.value=="" || document.form1.ORDER.value==""){
 alert("Please type an Product Type and an order");
}else { document.form1.submit();}
}
</script>
<table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center"><a href="../reports.php">Go Back to Main Menu</a> </div></td>
  </tr>
  <tr>
    <td><form id="form1" name="form1" method="post" action="<?php 
echo $PHP_SELF;
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:admin_products.php

示例15: require

<? 
require ('../../functions.php'); 
include('../head_admin.php');
Titulo_Maestro("CUSTOMER LIST");


for ($i=0; $i<count($del); $i++) {
	mysql_db_query($db,"DELETE FROM CLIENTS WHERE ID_CLIENT=$del[$i]");
}

?>

<body bgcolor="#FFFFFF">

<center>
<p>
<? 
#######################################
?>

<table cellpadding=2 cellspacing=1>
  <tr><form>
    <td> Keyword<br>
        <input type="text" name="keyw">
    </td>
    <td><br>
        <input type="hidden" name="flag" value="1">
        <input type="submit" value="Search">
    </td>
    <td width=80></td>
    <td>
开发者ID:BackupTheBerlios,项目名称:e-maku-svn,代码行数:31,代码来源:customer_list.php


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