function __construct($page) { parent::__construct(); $this->lPage = $page; $this->oHtml = HtmlLib::singleton(); $this->oAjax = new AjaxLib(); }
public function Mensaje() { $Mensaje = $_GET['Codigo']; $eUsuario = unserialize($_SESSION['eUsuario']); $oHtml = HtmlLib::singleton(); $lVars['btnRegresar'] = $oHtml->imgbutton("window.open('index.php?Page=BsqPersona','_parent')", 'pRegresar.png', 'Regresar'); $lVars['Menu'] = $eUsuario->get('objRol')->get('lMenu'); $lVars['Mensaje'] = constant($Mensaje); $this->lView->show($this->lPage, $lVars); }
function __construct($page) { parent::__construct(); $this->lPage = $page; $this->oHtml = HtmlLib::singleton(); $this->oAjax = new AjaxLib(); $this->eUsuario = unserialize($_SESSION['eUsuario']); if ($this->eUsuario == null) { die; } }
public function Load() { $lHtml = HtmlLib::singleton(); $oAjax = new AjaxLib(); $lVars['TitlePage'] = "GEOPD - Sistema de Ubicacion OnLine "; $lVars['edtUsuario'] = $lHtml->textbox('edtUsuario', 'edtUno', '', 10, ''); $lVars['edtContrasena'] = $lHtml->pass('edtContrasena', 'edtUno', '', 10); //array("onClick","valLogin(this.form)"); $lVars['btnIngresar'] = $lHtml->submit('btnIngresar', 'btnPrincipal', 'Ingresar', ''); $lVars['Page'] = $lHtml->hidden('Page', 'Usuario'); $lVars['Action'] = $lHtml->hidden('Action', 'Validar'); $lVars['Ajax'] = $oAjax->ImprimirJs(); $lVars['Mensaje'] = $lHtml->label("lblError", "msjError", $_SESSION['Mensaje']); $_SESSION['Mensaje'] = ""; $this->lView->show($this->lPage, $lVars); }
<?php include_once "htmllib/lib/include.php"; $ghtml = new HtmlLib(); $res["Admin"] = array('admin', 'client'); $res['Openvz Owner'] = array('openvz.vm', 'vps'); $color = "style='border:1px solid black'"; print "<table cellspacing=0 cellpadding=0>\n"; foreach ($res as $k => $v) { $formname = $v[0] . "_" . $v[1]; $class = $v[1]; $name = $v[0]; $color = null; if ($class == 'superadmin') { $color = "style='border-bottom:1px solid black'"; } $formname = str_replace(array('@', '.'), "", $formname); print "<tr>\n<td {$color}>\n"; print "<form name={$formname} method={$sgbl->method} action='/htmllib/phplib/'>\n"; print "<input type=hidden name=frm_clientname value={$v[0]}>\n"; print "<input type=hidden name=frm_class value={$v[1]}>\n"; print "<input type=hidden name=frm_password value=lxlabs>\n"; print "</form>\n"; if ($class == 'client') { $var = "cttype_v_{$name}"; } else { $var = 'show'; } $image = $ghtml->get_image("/img/image/collage/button/", $class, $var, ".gif"); print "<img width=20 height=20 src={$image}></td>\n<td {$color} ><a href=javascript:document.{$formname}.submit()> Click here to Login as {$k} ({$v['0']})</a>\n"; print "</td>\n</tr>\n";
public static function singleton() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; }
$codeMap = new CodeMap(); $dateMap = new DateMap(); $bolsaController = new BolsaController($bolsa, $bolsaDao); $iterator = $bolsaController->getBolsa()->getCotacoes(); print_r($dateMap->getMap()); echo "<br />".$dateMap->getMap()->count()."<br />"; foreach($dateMap->getMap() as $date){ echo "date = $date<br /><br />"; } while($iterator->valid()){ echo "Codigo: ".$iterator->current()->getCodigo(); echo "<br />Produto: ".$iterator->current()->getName($codeMap); echo "<br />Mês: ".$iterator->current()->getMounth($dateMap); echo "<br />Valor: ".$iterator->current()->getValor(); echo "<br />Diferencial: ".$iterator->current()->getDiferencial(); echo "<br />---------------<br />"; $iterator->next(); }*/ require_once 'Maps/HashMap.php'; require_once "HtmlLib.php"; require_once 'Classifier/Classifier.php'; $cotacoes = HtmlLib::cotacoes(); foreach ($cotacoes->get("BMF") as $cotacao) { echo "Nome: " . $cotacao->getName() . " - " . $cotacao->getLast() . "<br />"; //echo "Codigo : ".$cotacao->getCodigo()." - ". $cotacao->getImage();"<br />"; //echo "<br />"; }
<div class="title-cot"> <span class="title-cotation">Indicadores Financeiros</span> </div> <table class="table-values" border="0"> <thead> <tr> <th class="first"></th> <th>ULT</th> <th>DIF</th> <th>ANT</th> </tr> </thead> <tbody> <tr id="<?echo $allCots->get("Dolar")->offSetGet(0)->getCode()?>" class="cotation-values"> <?echo HtmlLib::buildLineWithCurrentFisicaOrIndicador($allCots->get("Dolar")->offSetGet(0), false);?> </tr> <tr id="<?echo $allCots->get("Euro")->offSetGet(0)->getCode()?>" class="cotation-values"> <?echo HtmlLib::buildLineWithCurrentFisicaOrIndicador(($allCots->get("Euro")->offSetGet(0)), false);?> </tr> <tr id="<?echo $allCots->get("IBovespa")->offSetGet(0)->getCode()?>" class="cotation-values"> <?echo HtmlLib::buildLineWithCurrentFisicaOrIndicador($allCots->get("IBovespa")->offSetGet(0), false);?> </tr> </tbody> </table> </div> </div> <span style="font-size: 11px; margin-top: 10px;"> * Clique nos contratos para visualizar os gráficos </span> </div><!--end tollbars--> </div>
private static function init() { if (self::$controller == null) { self::$controller = new BolsaController(new Bolsa(), new JSONBolsaDao(new CodeMap(), new DateMap())); } }
$(document).ready(function(){ var fusion = new FusionCharts("http://localhost/bureau_perfil/fusion/MSColumn3D.swf","ChartId", "500", "350", "0", "0"); fusion.setDataURL('arq.xml'); //fusion.setDataXML("<chart bgColor='FFFFFF'><categories><category label='Café Londres Mai/11'/><category label='Café Londres Jul/11'/><category label='Café Londres Set/11'/><category label='Café Londres Nov/11'/></categories><dataset seriesName='ULT'><set value='2.475'/><set value='2.473'/><set value='2.498'/><set value='2.500'/></dataset><dataset seriesName='CAberto'><set value='53.166'/><set value='78.146'/><set value='22.828'/><set value='9.363'/></dataset></chart>"); fusion.render("chart"); }); </script> </head> <body> <div id="chart" style="border: 2px solid black"> </div> </body> </html> <?php ini_set('display_errors', '1'); require_once '../Link/LinkController.php'; require_once '../../util/Maps/HashMap.php'; require_once 'XmlCharts/XmlChart.php'; require_once 'XmlCharts/MultiSerie/XmlMultiSeries.php'; require_once 'XmlCharts/MultiSerie/XmlMultiSerieColumn.php'; require_once 'Configs/MultiSeriesConfig.php'; require_once 'Configs/MultiSeriesColumnConfig.php'; require_once '../Cotation/CotacoesRefactor/HtmlLib.php'; $allCots = HtmlLib::cotacoes(); $config = new MultiSeriesColumnConfig(); $bmf = $allCots->get("BMF"); $config->config($bmf); $config->config($allCots->get("NY")); $config->config($allCots->get("London")); $config->getChartXml()->buildXml();