Exemplo n.º 1
0
<?php

initCalendar();
?>
</head>
<body>
<div class="main">
	<div class="header">		
		<?php 
echo $menu;
?>
		
	</div>
	<div id="selectores"></div>
	<div id="content">
	<form id="formulario" action="?controlador=compras&accion=consultar&metodo=ajax" method="POST">
	<table>
		<tbody>
			<tr>
				<td><label>Tienda</label><?php 
echo selectorTienda();
?>
</td>
				<td><label>Fecha Inicial</label><?php 
echo selectorFecha('fechainicial');
?>
</td>
				<td><label>Fecha Final</label><?php 
echo selectorFecha('fechafinal');
?>
</td>
Exemplo n.º 2
0
<?
include('../config.php');
include(mnminclude.'external_post.php');
include_once(mnminclude.'log.php');
include_once(mnminclude.'ban.php');

include_once('publish_calendar.php');

$client = initCalendar();

define('DEBUG', false);

header("Content-Type: text/html");
echo '<html><head><title>promote9.php</title></head><body>';
ob_end_flush();

$min_karma_coef = 0.87;


define(MAX, 1.15);
define (MIN, 1.0);
define (PUB_MIN, 20);
define (PUB_MAX, 75);
define (PUB_PERC, 0.10);



$links_queue = $db->get_var("SELECT SQL_NO_CACHE count(*) from links WHERE link_date > date_sub(now(), interval 24 hour) and link_status in ('published', 'queued')");
$links_queue_all = $db->get_var("SELECT SQL_NO_CACHE count(*) from links WHERE link_date > date_sub(now(), interval 24 hour) and link_votes > 0");