<td colspan="3"> <p style="margin-bottom:0; margin-top:0;"> <input class="inputNumber" id="edadPromedio" maxlength="2" name="edadPromedio" style="width:40px;" type="text" value="<?php echo $alta ? "35" : emptyIfZero($row["EDADPROMEDIO"]); ?> "> </td> </tr> <tr> <td width="17%"><p style="margin-bottom:0; margin-top:0;"><font color="#676767" face="Trebuchet MS" style="font-size:8pt;">Sector (*)</font></td> <td colspan="3" width="51%"><select id="sector" name="sector"></select></td> </tr> <tr> <td width="17%"><p style="margin-bottom:0; margin-top:0;"><font color="#676767" face="Trebuchet MS" style="font-size:8pt;">Cant. de establecimientos</font></td> <td colspan="3"><input class="inputNumber" id="cantidadEstablecimientos" maxlength="3" name="cantidadEstablecimientos" style="width:40px;" type="text" value="<?php echo $alta ? "" : emptyIfZero($row["ESTABLECIMIENTOS"]); ?> "></td> </tr> <tr> <td width="17%"><p style="margin-bottom:0; margin-top:0;"><font color="#676767" face="Trebuchet MS" style="font-size:8pt;">Zona Geográfica (*)</font></td> <td colspan="3"><select id="zonaGeografica" name="zonaGeografica"></select></td> </tr> <? $params = array(":identidad" => $_SESSION["entidad"], ":usuario" => $_SESSION["usuario"]); $sql = "SELECT 1 FROM afi.ape_prestacionesespeciales WHERE pe_fechabaja IS NULL AND ((pe_identidad = :identidad) OR (pe_usuario = :usuario AND pe_tipousuario = 'W'))"; if (ExisteSql($sql, $params)) {
$stats = getRankStat($profileId, $startDate, $endDate, $interval); ?> <chart caption='Alexa Rank' lineThickness='4' showValues='0' anchorRadius='4' anchorBgAlpha='50' showAlternateVGridColor='1' animation='1' scrollToEnd='1' showLegend='0' chartTopMargin='5' chartBottomMargin='5' chartLeftMargin='5' chartRightMargin='10' captionPadding='5' palette='3' setAdaptiveYMin='1' baseFontSize='9' baseFont='Lucida Grande, Arial' valuePadding='5' connectNullData='1'> <categories > <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <category label='<?php echo $stats[$i]['period']; ?> ' /> <? } ?> </categories> <dataset color='6666FF'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['alexa_rank'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>
?> ' /> <? } ?> </categories> <dataset seriesName='Unsubscription' color='6666FF'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['unsubscribe'])); ?> ' /> <? } ?> </dataset> <dataset seriesName='Fans'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['fans'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>
?> ' /> <? } ?> </dataset> <dataset seriesName='Google'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['google'])); ?> ' /> <? } ?> </dataset> <dataset seriesName='Yahoo'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['yahoo'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>
?> ' /> <? } ?> </categories> <dataset seriesName='Page Views' color='6666FF'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['pageview'])); ?> ' /> <? } ?> </dataset> <dataset seriesName='Visitors'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['visit'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>
?> ' /> <? } ?> </dataset> <dataset seriesName='Wallposts'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['wallposts'])); ?> ' /> <? } ?> </dataset> <dataset seriesName='Likes'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['likes'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>
?> ' /> <? } ?> </dataset> <dataset seriesName='SEO Pro'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['backlink3'])); ?> ' /> <? } ?> </dataset> <dataset seriesName='Yahoo'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['backlink1'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>
?> ' /> <? } ?> </categories> <dataset seriesName='Followers' color='6666FF'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['followers'])); ?> ' /> <? } ?> </dataset> <dataset seriesName='Tweets'> <? for ($i = 0; $i < sizeof($stats); $i++) { ?> <set value='<?php echo emptyIfZero(round($stats[$i]['tweets'])); ?> ' /> <? } ?> </dataset> <!-- <trendlines> <line startValue='2000' color='91C728' displayValue='Target' showOnTop='0'/> </trendlines> --> <styles> <definition> <style name='CaptionStyle' type='font' font='Lucida Grande, Arial' size='12'/> </definition>