ALTER TABLE w_configuracion ADD actnot int(1) NOT NULL DEFAULT '0', ADD titlenot varchar(100) NOT NULL, ADD infonot varchar(350) NOT NULL, ADD timenot int(1) NOT NULL DEFAULT '1';
'offline_message' => $tsCore->setSecure($tsCore->parseBadWords($_POST['offline_message'])),
'actnot' => empty($_POST['actnot']) ? 0 : 1,
'titlenot' => $tsCore->setSecure($tsCore->parseBadWords($_POST['titlenot'])),
'infonot' => $tsCore->setSecure($tsCore->parseBadWords($_POST['infonot'])),
'timenot' => $tsCore->setSecure($_POST['timenot']),
`offline_message` = \'' . $c['offline_message'] . '\'
, `actnot` = \'' . $c['actnot'] . '\' , `titlenot` = \'' . $c['titlenot'] . '\' , `infonot` = \'' . $c['infonot'] . '\' , `timenot` = \'' . $c['timenot'] . '\'
{include file='sections/main_footer.tpl'}
{if $tsConfig.actnot == 1}
<div class="boxvell">
<span class="titlenot"><h2>{$tsConfig.titlenot}</h2></span>
<div style="margin:5px">{$tsConfig.infonot}</div>
</div>
{/if}
<dl>
<dt>
<label for="ai_chat">Chatango ID:</label>
<br /><span>Por defecto puedes agregar un chat de <a href="Registrate o inicia tu sesión para ver este contenido">Chatango</a> para tu web, solo crea tu grupo he ingresa el nombre. (Dejar vacío para usar xat)</span></dt>
<dd>
<input type="text" id="ai_chat" name="chat" maxlength="20" value="{$tsConfig.chat_id}" /> </dd>
</dl>
<hr>
<dl>
<dt><label for="actnot">Mensaje Temporal:</label><span>Este mensaje se mostrara de manera temporal.</span></dt>
<dd>
<label><input name="actnot" type="radio" id="actnot" value="1" {if $tsConfig.actnot == 1}checked="checked"{/if} class="radio"/> Sí</label>
<label><input name="actnot" type="radio" id="actnot" value="0" {if $tsConfig.actnot != 1}checked="checked"{/if} class="radio"/> No</label>
</dd>
</dl>
<dl>
<dt><label for="timenot">Tiempo:</label> <span>Indique la cantidad de segundos que se mostrara el mensaje.(<b>0</b> es permanente)</span></dt>
<dd><input type="text" onkeyup="var no_digito = /\D/g; this.value = this.value.replace(no_digito , '');" id="timenot" name="timenot" style="width:10%" maxlength="5" value="{$tsConfig.timenot}" /> segundos.</dd>
</dl>
<dl>
<dt><label for="titlenot">Título:</label><span>Indique el título del mensaje.</span></dt>
<dd><input type="text" maxlength="100" id="titlenot" name="titlenot" maxlength="20" value="{$tsConfig.titlenot}" /> </dd>
</dl>
<dl>
<dt><label for="infonot">Contenido del Mensaje:</label><span>Ingresar el mensaje (max. 350 caracteres)</span></dt>
<dd><textarea style="width:300px;" maxlength="350" id="infonot" name="infonot">{$tsConfig.infonot}</textarea></dd>
</dl>
<hr>
<div class="boxblo">
<div class="desbox">
<label for="ai_chat">Chatango ID:</label>
<span class="foquito" onclick="mydialog.alert('Información','Por defecto puedes agregar un chat de <b>Chatango</b> para tu sitio<br/> solo crea tu grupo he ingresa el nombre.')"></span>
</div>
<input type="text" id="ai_chat" name="chat" maxlength="20" value="{$tsConfig.chat_id}" placeholder="Dejar vacío para usar xat"/>
</div>
<div class="boxblo">
<div class="desbox">
<label for="actnot">Mensaje Temporal:</label>
<span class="foquito" onclick="mydialog.alert('Este mensaje se mostrara de manera temporal.')"></span>
</div>
<select name="actnot">
<option value="1" {if $tsConfig.actnot == 1}selected="selected"{/if}>Si</option>
<option value="0" {if $tsConfig.actnot != 1}selected="selected"{/if}>No</option>
</select>
</div>
<div class="boxblo" style="border-top: none;">
<div class="desbox">
<label for="timenot">Tiempo:</label>
<span class="foquito" onclick="mydialog.alert('Indique la cantidad de segundos que se mostrara el mensaje.(<b>0</b> es permanente)')"></span>
</div>
<input type="text" onkeyup="var no_digito = /\D/g; this.value = this.value.replace(no_digito , '');" id="timenot" name="timenot" style="width:10%" maxlength="5" value="{$tsConfig.timenot}" placeholder="segundos"/>
</div>
<div class="boxblo" style="border-top: none;">
<div class="desbox">
<label for="titlenot">Título:</label>
<span class="foquito" onclick="mydialog.alert('Indique el título del mensaje.')"></span>
</div>
<input type="text" maxlength="100" id="titlenot" name="titlenot" maxlength="20" value="{$tsConfig.titlenot}"/>
</div>
<div class="boxblo" style="border-top: none;">
<div class="desbox">
<label for="infonot">Contenido del Mensaje:</label>
<span class="foquito" onclick="mydialog.alert('Ingresar el mensaje (max. 350 caracteres)')"></span>
</div>
<textarea maxlength="350" id="infonot" name="infonot">{$tsConfig.infonot}</textarea>
</div>
</head>
{if $tsConfig.actnot == 1}
<script type="text/javascript">
{literal}
setTimeout(function(){$('.boxvell').fadeOut('fast')},{/literal}({if $tsConfig.timenot==0}10000{else}{$tsConfig.timenot}{/if}*1000){literal}); //30000 = 30 segundos
{/literal}
</script>
{/if}
.titlenot h2{font-size:14px;color:#f4ff74;text-decoration:underline}
.boxvell{position:fixed;bottom:0;right:200px;padding:10px;color:#fff;font-family:tahoma;font-size:11px;font-family:tahoma;font-size:11px;text-align:left;margin-bottom:17px;width:300px;background:url(Registrate o inicia tu sesión para ver este contenido 1px 1px rgba(0,0,0,.7);-moz-box-shadow:0 2px 7px rgba(0,0,0,.3);-webkit-box-shadow:0 2px 7px rgba(0,0,0,.3);box-shadow:0 2px 7px rgba(0,0,0,.3)}