Esempio n. 1
0
 function load($cat = "", $subcat = "")
 {
     $sql = "SELECT c.*, p.nombre nombre_proveedor, cc.descripcion as nombre_categoria\n\t\tFROM Web.contenidos c\n\t\tINNER JOIN Web.contenidos_proveedores p ON (p.id=c.proveedor)\n\t\tINNER JOIN Web.contenidos_cat cc ON (cc.id=c.categoria)\n\t\tWHERE c.id={$this->code} ";
     $rs = mysql_query($sql, $this->dbc);
     if (!$rs) {
         die("ERROR SQL: {$sql} -> " . mysql_error($this->dbc));
     }
     $obj = mysql_fetch_object($rs);
     // seteo categorias
     $search_keywords = "{$obj->nombre}, {$obj->nombre_categoria}, video, clip, {$obj->autor}, {$obj->nombre_proveedor}, {$obj->genero}";
     $this->icons = $obj->referencia;
     $this->video = $obj->archivo;
     // descomentar la sgte linea para ftp local (240)
     //		$this->icons = str_replace("/netuy", "", $this->icons);
     $this->video = str_replace("/netuy", "", $this->video);
     // preparo map al objeto
     $this->set("nombre_contenido", konvert($obj->nombre));
     $this->set("proveedor", "Globalnet");
     $this->set("type", "video");
     //		list ($cat, $subcat) = $this->get_tigo_categories($obj->id, $this->tipo_cont);
     $this->set("categoria", konvert($cat));
     $this->set("subcategoria", konvert($subcat));
     $this->set("operator", "");
     $this->set("search_keywords", konvert("{$search_keywords}"));
     $this->set("royalty", "");
     $this->set("album", "");
     $this->set("artista", konvert($obj->autor));
     $this->set("movie", "");
 }
Esempio n. 2
0
function getnis($jur)
{
    // menentukan jumlah siswa
    $qs = mysql_query("select id from siswa");
    $data = mysql_fetch_array($qs);
    $jum = mysql_num_rows($qs);
    // untuk menentukan nim akhir
    if ($jum < 1) {
        $id = 1;
    } else {
        $id = $jum + 1;
    }
    // tahun
    $thn = date('y');
    // menentukan kode jurusan
    $jur = konvert('jurusan', $jur, 'kode');
    return $thn . $jur . $id;
}
Esempio n. 3
0
 function load($cat = "", $subcat = "")
 {
     $sql = "SELECT c.*, p.nombre nombre_proveedor\n                FROM Web.contenidos c\n                INNER JOIN Web.contenidos_proveedores p ON (p.id=c.proveedor)\n                WHERE c.id={$this->code} ";
     $rs = mysql_query($sql, $this->dbc);
     if (!$rs) {
         die("ERROR SQL: {$sql} -> " . mysql_error($this->dbc));
     }
     $obj = mysql_fetch_object($rs);
     // seteo cateogiras
     $search_keywords = "{$obj->nombre}, mp3, sonido, fulltrack, {$obj->autor}, {$obj->genero}";
     // archivo en ftp
     if ($obj->archivo == "") {
         $this->icons = $obj->referencia;
     } else {
         $this->icons = $obj->archivo;
     }
     $this->icons = str_replace("128x128", "320x320", $this->icons);
     $this->icons = str_replace(".gif", ".jpg", $this->icons);
     // descomentar la sgte linea para ftp local (240)
     $this->icons = "/fulltracks/" . str_replace("/netuy", "", $this->icons);
     $datosFile = pathinfo($this->icons);
     $this->namePreview = $datosFile["dirname"] . "/prv_" . $datosFile["basename"];
     $this->nameContent = $datosFile["dirname"] . "/" . $datosFile["basename"];
     // preparo map al objeto
     $this->set("nombre_contenido", konvert($obj->nombre));
     $this->set("proveedor", "Globalnet");
     //		list ($cat, $subcat) = $this->get_tigo_categories($obj->id, $this->tipo_cont);
     $this->set("categoria", konvert($cat));
     $this->set("subcategoria", str_replace("({$cat})", "", konvert($subcat)));
     $this->set("operator", "");
     $this->set("search_keywords", konvert("{$search_keywords}"));
     $this->set("musiclabel", konvert($obj->autor));
     $this->set("movie", konvert($obj->autor));
     $this->set("album", konvert($obj->autor));
     $this->set("artista", konvert($obj->autor));
     //$this->set("provider_code", "");
     $this->set("royalty", "Globalnet");
     $this->set("code", konvert($obj->id));
 }
Esempio n. 4
0
 public function setShortDescription($shortDescription)
 {
     $this->shortDescription = konvert($shortDescription);
 }
Esempio n. 5
0
					<td class="text-center" title="<?php 
    echo time_ago($d['buat']);
    ?>
"><?php 
    echo TanggalIndo($d['buat']);
    ?>
</td>
					<td><?php 
    echo konvert('sanksi', $d['idsanksi'], 'nama');
    ?>
</td>
					<td class="text-center" title="<?php 
    echo time_ago($d['ubah']);
    ?>
"><?php 
    echo TanggalIndo($d['ubah']);
    ?>
</td>
					<td class="text-center"><?php 
    echo konvert('users', $d['idguru'], 'nama');
    ?>
</td>
				</tr>
			  <?php 
    $i++;
}
?>
			</tbody>
		</table>
	</div>
</div>
Esempio n. 6
0
<?php

include 'db.php';
include 'fungsi.php';
$nis = $_GET['nis'];
$db = new Database();
$db->connect();
$db->select('siswa', '*', null, "nis='{$nis}'");
// Table name, Column Names, JOIN, WHERE conditions, ORDER BY conditions
$res = $db->getResult();
foreach ($res as $d) {
    echo konvert('kelas', $d['kelas'], 'wali_kelas');
}
Esempio n. 7
0
    public function updateXML()
    {
        $this->addLog("<" . __LINE__ . "> " . __METHOD__);
        $this->addLog("Generando XML UPDATE para {$this->contentId}");
        //$keywordStr = "\"" . implode("\r\n", $this->keywords) . "\"";
        $keywordStr = implode(" ", $this->keywords);
        $this->arraySubForm = array("Content Title" => $this->title, "Website Category" => $this->webCat, "Genres" => $this->tag, "Creator" => $this->artist . $this->festivo);
        if (!is_numeric($this->contentId) || $this->contentId <= 0) {
            $this->genException("CRIT", __LINE__, __METHOD__, ": content_id no valido");
        }
        $carriers = explode(",", CARRIERS);
        $langs = explode(",", LANGS);
        $xmlstr = XML_HEADER . '<mgdGamesUpdate xmlns="http://www.qpass.net/telcel/mgdGames"
	xmlns:qpass="http://www.qpass.com/content" xmlns:jcr="http://www.jcp.org/jcr/1.0">' . "\n";
        $xmlstr .= "\t<qpass:ppuid>{$this->contentId}</qpass:ppuid>\r\n";
        // TAG:MERCHANT
        foreach ($this->merchants as $merchant) {
            $carrier = $this->obtainCarrier($merchant);
            $xmlstr .= "\t<qpass:merchant>{$carrier}</qpass:merchant>\r\n";
        }
        // TAG:RATING
        if (!empty($this->rating)) {
            $rating = $this->adult == "true" ? "18+" : $this->rating;
            $xmlstr .= "\n            <qpass:rating>\n                    <qpass:scheme>Mexico</qpass:scheme>\n                    <qpass:value>{$this->rating}</qpass:value>\n                    <qpass:comment>Comment</qpass:comment>\n            </qpass:rating>\n";
        }
        // TAG:TITLE
        foreach ($this->langs as $lang) {
            if (mustTranslateToEN($lang) === TRUE) {
                $trans = translate($this->dbc, $this->contentId, 'nombre');
                if ($trans === FALSE || $trans === NULL) {
                    echo "ERROR: Ocurrio un error traduciendo {$this->contentId} => 'nombre'";
                } else {
                    $xmlstr .= "\t<title qpass:lang=\"{$this->obtainLang($lang)}\">" . konvert($trans) . "</title>\r\n";
                }
            } else {
                $xmlstr .= "\t<title qpass:lang=\"{$this->obtainLang($lang)}\">{$this->title}</title>\r\n";
            }
        }
        // TAG:GENRES
        if (!empty($this->tag)) {
            $xmlstr .= "\t<genres>{$this->tag}</genres>\n";
        }
        if (!empty($this->tagEng)) {
            $xmlstr .= "\t<genres>{$this->tagEng}</genres>\n";
        }
        // TAG:SUBGENRES1
        if (!empty($this->subTag)) {
            $xmlstr .= "\t<subgenres1>{$this->subTag}</subgenres1>\n";
        }
        if (!empty($this->subTagEng)) {
            $xmlstr .= "\t<subgenres1>{$this->subTagEng}</subgenres1>\n";
        }
        // TAG:KEYWORDS
        foreach ($this->langs as $lang) {
            // en el caso de los keywords es diferente
            if (mustTranslateToEN($lang) === TRUE) {
                $trans = translate($this->dbc, $this->contentId, 'keywords');
                if ($trans === FALSE || $trans === NULL) {
                    echo "ERROR: Ocurrio un error traduciendo {$this->contentId} => 'keywords'";
                } else {
                    // cargo array con keywords traducidos
                    $keywords = explode(",", $trans);
                    foreach ($keywords as $kw) {
                        $kw = trim($kw);
                        if (!empty($kw)) {
                            $xmlstr .= "\t<keywords qpass:lang=\"{$this->obtainLang($lang)}\">" . konvert($kw) . "</keywords>\r\n";
                        }
                    }
                }
            } else {
                foreach ($this->keywords as $keyword) {
                    $keyword = trim($keyword);
                    if (!empty($keyword)) {
                        $xmlstr .= "\t<keywords qpass:lang=\"{$this->obtainLang($lang)}\">{$keyword}</keywords>\r\n";
                    }
                }
            }
        }
        // TAG:SHORTDESCRIPTION
        foreach ($this->langs as $lang) {
            if (mustTranslateToEN($lang) === TRUE) {
                $trans = translate($this->dbc, $this->contentId, 'short_desc');
                if ($trans === FALSE || $trans === NULL) {
                    echo "ERROR: Ocurrio un error traduciendo {$this->contentId} => 'short_desc'";
                } else {
                    $xmlstr .= "\t<shortDescription qpass:lang=\"{$this->obtainLang($lang)}\">" . konvert($trans) . "</shortDescription>\r\n";
                }
            } else {
                $xmlstr .= "\t<shortDescription qpass:lang=\"{$this->obtainLang($lang)}\">{$this->shortDescription}</shortDescription>\r\n";
            }
        }
        // TAG:LONGDESCRIPTION
        foreach ($this->langs as $lang) {
            if (mustTranslateToEN($lang) === TRUE) {
                $trans = translate($this->dbc, $this->contentId, 'long_desc');
                if ($trans === FALSE || $trans === NULL) {
                    echo "ERROR: Ocurrio un error traduciendo {$this->contentId} => 'long_desc'";
                } else {
                    $xmlstr .= "\t<longDescription qpass:lang=\"{$this->obtainLang($lang)}\">" . konvert($trans) . "</longDescription>\r\n";
                }
            } else {
                $xmlstr .= "\t<longDescription qpass:lang=\"{$this->obtainLang($lang)}\">{$this->longDescription}</longDescription>\r\n";
            }
        }
        // TAG:WEBSITECATEGORY
        if (!empty($this->webCat)) {
            $xmlstr .= "\t<websiteCategory>{$this->webCat}</websiteCategory>\n";
        }
        $xmlstr .= "</mgdGamesUpdate>";
        $this->addLog("XML Generado:\n" . $xml);
        return $xmlstr;
    }
Esempio n. 8
0
        ?>
>
			<td class="text-center"><?php 
        echo $i++;
        ?>
</td>
			<td><?php 
        echo $d['kode'];
        ?>
 - <?php 
        echo $d['nama'];
        ?>
</td>
			<td><?php 
        echo konvert('program', $d['idprogram'], 'nama');
        echo konvert('programs', $d['idprogram'], 'nama');
        ?>
</td>
			<td class="text-center"><?php 
        echo $d['tapel'];
        ?>
</td>
			<td class="text-center"><?php 
        if ($d['status'] == 0) {
            echo "Non-Aktif";
        } elseif ($d['status'] == 1) {
            echo "Aktif";
        }
        ?>
</td>
			<td class="text-center"><?php 
Esempio n. 9
0
</td>
		</tr>
		<tr>
			<td style="width: 20%; border: solid 0px #FFFFFF;">Program Studi</td>
			<td style="width: 50%; border: solid 0px #FFFFFF;">: <?php 
echo ambildata($idmajor, 'major', 'MAJOR_NAME');
?>
 / <?php 
echo ambildata($ideducation, 'education_level', 'EDUCATION_LEVEL_NAME');
?>
</td>
		</tr>
</table>

<p>Telah melakukan <?php 
echo konvert('internship_program', $dqir['PROGRAM_ID'], 'PROGRAM');
?>
 di Dinas Learning Service PT. GMF AeroAsia  mulai tanggal <?php 
echo TanggalIndo($dqir['START_DATE']);
?>
 s.d <?php 
echo TanggalIndo($dqir['END_DATE']);
?>
.</p>

<p>Demikian surat keterangan ini kami buat untuk digunakan sebagaimana mestinya.</p>

<p>Hormati kami,<br>
<b>PT. GMF AeroAsia<br>
<?php 
echo $dqts['S_VALUE'];
Esempio n. 10
0
 function Display()
 {
     //Chequeamos si estamos tratando con el drutt de ANCEL
     $allHeaders = getallheaders();
     $esDruttANCEL = false;
     //		if(strtoupper($allHeaders["DRUTT"]) == "SI") {
     if (ANCEL == 1) {
         $esDruttANCEL = true;
     }
     global $ua;
     //utilizamos la variable global "$ua" que se declara en el archivo "getCelularHeader.php"
     global $CELULARES_PESO_SIMPLE;
     $html = $this->_loadTemplate();
     $estilos = $this->loadStyleSheet();
     $html = str_replace("#ESTILOS#", $estilos, $html);
     $html = str_replace("#BLACKBERRY_STYLES#", '<link rel="stylesheet" type="text/css" media="handset" href="./estilos/estilos.css" />', $html);
     //Chanchadas que tenemos que hacer si estamos trabajando con el drutt de ancel:
     if ($esDruttANCEL) {
         $html = str_replace('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"  >', "<html>", $html);
         $html = str_replace('<style type="text/css">', '<style drutt-force="true"> ', $html);
     }
     $tipo_cabezal = "chico";
     //Por si el modelo no es soportado o alguna otra cosa, asumimos que el m�s chico de todos se puede ver
     if (miscFunctions::soportaAnchoMayor($this->conn->db, $ua)) {
         $tipo_cabezal = "grande";
         $html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_GRANDE, $html);
     }
     if (miscFunctions::soportaAnchoMedio($this->conn->db, $ua)) {
         $tipo_cabezal = "mediano";
         ///$html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_MEDIANA, $html);
         $html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_MEDIANA, $html);
     }
     if (miscFunctions::soportaAnchoChico($this->conn->db, $ua)) {
         $tipo_cabezal = "chico";
         $html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_CHICA, $html);
     }
     //Cargamos los LOGOS-EXTRAS
     $tpl_extras_logos = $this->loadExtraTemplates($this->extras_logos_tpl);
     $html = str_replace("#LOGOS-EXTRAS#", $tpl_extras_logos, $html);
     //Cargamos los PIE-EXTRAS
     $tpl_extras_urls = $this->loadExtraTemplates($this->extras_pie_tpl);
     if (OPERADORA_MCM == 'claro.pe') {
         $tpl_extras_urls = '<a href="http://claroper-cw.qpass.com/ndmns/index">IR a Claro</a>' . $tpl_extras_urls;
     }
     $html = str_replace("#PIE-EXTRAS#", $tpl_extras_urls, $html);
     if ($this->marca_blanca || MARCA_BLANCA == 1) {
         $html = preg_replace("/#LOGO-WZZP#.+#LOGO-WZZP#/", "", $html);
     } else {
         $html = preg_replace("/#LOGO-WZZP#/", "", $html);
     }
     //la constante HIDE_HEADER se debe definir en el archivo constantes.php de cada wap
     if (HIDE_HEADER === 1) {
         $html = preg_replace("/#IMG-HEADER#.+#IMG-HEADER#/", "", $html);
     } else {
         $html = preg_replace("/#IMG-HEADER#/", "", $html);
     }
     if (ANCEL == 1) {
         if (SHOW_LINK_DALE == 1) {
             $seccion_pie_dest = new Seccion("", "center", "", SECCION_SIN_TITULO);
             $link_dale = null;
             if (servicio3G()) {
                 $link_dale = new Link("http://www.3g.dale.com.uy", "<br/>Volver a portal 3G");
             } else {
                 $link_dale = new Link("http://www.dale.com.uy", "<br/>Volver a portal DALE");
             }
             $html = str_replace("#LINK-DALE#", $link_dale->Display(), $html);
         }
     }
     $html = str_replace("#LINK-DALE#", "", $html);
     //super HACZOR malo:
     $html = str_replace(".list-item {float:left;  width: 65px; ", ".list-item {", $html);
     $html = str_replace("#TIPO_CABEZAL#", $this->cabezal_name . '_' . $tipo_cabezal, $html);
     $html = str_replace("#TITULO#", $this->titulo, $html);
     $html_interior = parent::Display();
     if (defined('TIGO_GT') || defined('VIVA_BO') || defined('CLARO_PA')) {
         if (TIGO_GT == 1 || VIVA_BO == 1 || CLARO_PA == 1) {
             $html_interior = str_replace("\$", "", $html_interior);
         }
     }
     if (defined('AGREGAR_EXTRA_PESOS')) {
         if (AGREGAR_EXTRA_PESOS == 1) {
             $html_interior = str_replace("\$", "\$\$", $html_interior);
         }
     }
     /* * /
     		if(in_array($ua, $CELULARES_PESO_SIMPLE)) {
     			$html_interior = str_replace("$$", "$ ", $html_interior);
     		}
     		//*/
     $html = str_replace("#COMPONENTES#", $html_interior, $html);
     $html = str_replace("#HTTP_REFERER#", $_SERVER['HTTP_REFERER'], $html);
     $html = str_replace("&amp;", "&", $html);
     ///$html = str_replace("&", "&amp;", $html);
     $html = konvert($html);
     $html = str_replace("�", "&#241;", $html);
     $html = str_replace("�", "&#225;", $html);
     $html = str_replace("é", "&#233;", $html);
     $html = str_replace("í", "&#237;", $html);
     $html = str_replace("ó", "&#243;", $html);
     $html = str_replace("ú", "&#250;", $html);
     $html = str_replace("Ñ", "&#209;", $html);
     $html = str_replace("Á", "&#193;", $html);
     $html = str_replace("É", "&#201;", $html);
     $html = str_replace("Í", "&#205;", $html);
     $html = str_replace("Ó", "&#211;", $html);
     $html = str_replace("Ú", "&#218;", $html);
     $html = str_replace("¿", "&#191;", $html);
     $html = str_replace(chr(173), "", $html);
     /*
     		$html = str_replace("&", "&amp;", $html);
     		$html = str_replace("�", "&#241;", $html);
     		$html = str_replace("�", "&#225;", $html);
     		$html = str_replace("é", "&#233;", $html);
     		$html = str_replace("í", "&#237;", $html);
     		$html = str_replace("ó", "&#243;", $html);
     		$html = str_replace("ú", "&#250;", $html);
     		$html = str_replace("Ñ", "&#209;", $html);
     		$html = str_replace("Á", "&#193;", $html);
     		$html = str_replace("É", "&#201;", $html);
     		$html = str_replace("Í", "&#205;", $html);
     		$html = str_replace("Ó", "&#211;", $html);
     		$html = str_replace("Ú", "&#218;", $html);
     		$html = str_replace("¿", "&#191;", $html);
     		**/
     $html = str_replace("&amp;nbsp;", "&#32;", $html);
     $partes = explode("id=\"paginado\"", $html);
     $nuevo_html = "";
     foreach ($partes as $i => $p) {
         if ($i == 0) {
             $i = "";
         }
         $nuevo_html .= $p . " id=\"paginado{$i}\" ";
         $largo_cola = strlen(" id=\"paginado{$i}\"");
     }
     $nuevo_html = substr($nuevo_html, 0, strlen($nuevo_html) - $largo_cola);
     $html = $nuevo_html;
     include_once $_SERVER["DOCUMENT_ROOT"] . "/../lib/kStats/kga.php";
     $html = str_replace("</body>", "{$kgaHtml}</body>", $html);
     //  $html = strtolower($html);
     return $html;
 }
Esempio n. 11
0
            ?>
"><button type="submit" class="btn btn-primary btn-xs">Detail</button></form></td>
			</tr>
		  <?php 
            $o++;
        }
        ?>
		</tbody>
	</table>
</div>
<script>
	var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
	var barChartData = {
		labels : [<?php 
        foreach ($ds as $d) {
            echo "\"Kelas " . konvert('kelas', $d['kelas'], 'nama') . "\"";
            if ($n != $total) {
                echo ",";
            }
            $n++;
        }
        ?>
],
		datasets : [
			{
				fillColor : "rgba(220,220,220,0.5)",
				strokeColor : "rgba(220,220,220,0.8)",
				highlightFill: "rgba(220,220,220,0.75)",
				highlightStroke: "rgba(220,220,220,1)",
				data : [<?php 
        foreach ($dp as $p) {
Esempio n. 12
0
            ?>
"><button type="submit" class="btn btn-primary btn-xs">Detail</button></form></td>
			</tr>
		  <?php 
            $o++;
        }
        ?>
		</tbody>
	</table>
</div>
<script>
	var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
	var barChartData = {
		labels : [<?php 
        foreach ($ds as $d) {
            echo "\"" . konvert('jurusan', $d['jurusan'], 'nama') . "\"";
            if ($n != $total) {
                echo ",";
            }
            $n++;
        }
        ?>
],
		datasets : [
			{
				fillColor : "rgba(220,220,220,0.5)",
				strokeColor : "rgba(220,220,220,0.8)",
				highlightFill: "rgba(220,220,220,0.75)",
				highlightStroke: "rgba(220,220,220,1)",
				data : [<?php 
        foreach ($dp as $p) {
Esempio n. 13
0
      });
      </script>
      <div class="form-group">
        <label class="col-sm-2 control-label">Instansi</label>
        <div class="col-sm-4">
          <input name="instansi" id="ins" class="form-control input-sm" required="required" value="<?php 
echo konvert('institute', $f['INSTITUTE_ID'], 'INSTITUTE_NAME');
?>
">
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">Jurusan</label>
        <div class="col-sm-4">
          <input name="jurusan" id="inputJurusan" class="form-control input-sm" required="required" value="<?php 
echo konvert('major', $f['MAJOR_ID'], 'MAJOR_NAME');
?>
">
        </div>
      </div>
  <div class="form-group" style="background:#333">
    <label class="col-sm-2 control-label">User ID</label>
    <div class="col-sm-4">
      <input type="text" name="userid" id="inputUserid" class="form-control" value="<?php 
echo $b['USERNAME'];
?>
" readonly maxlength="30">
    </div>
    <label class="col-sm-2 control-label">Password</label>
    <div class="col-sm-4">
      <input type="password" name="pw" id="password" class="form-control">
Esempio n. 14
0
    ?>
"><?php 
    echo TanggalIndo($d['tanggal']);
    ?>
</td>
					<td class="text-center">TR-0<?php 
    echo $d['idtata'];
    ?>
</td>
					<td><?php 
    echo konvert('tata_tertib', $d['idtata'], 'nama');
    ?>
</td>
					<td class="text-center"><?php 
    echo konvert('tata_tertib', $d['idtata'], 'poin');
    $poin = konvert('tata_tertib', $d['idtata'], 'poin');
    ?>
</td>
				</tr>
			  <?php 
    $i++;
    $poin = $poin + $poin;
}
?>
			</tbody>
			<tfoot>
				<tr class="info lead">
					<td colspan="4" class="text-right">Total Poin</td>
					<td class="text-center"><?php 
echo $poin;
?>
Esempio n. 15
0
 public function setWebCat($webCat)
 {
     $this->webCat = konvert($webCat);
 }
Esempio n. 16
0
<?php 
echo $d['NOMOR'];
?>
<br>
<b><i>Re: Permohonan <?php 
echo konvert('internship_program', $dqir['PROGRAM_ID'], 'PROGRAM');
?>
</i></b></p>

<p>Dengan Hormat,</p>

<p>Menindaklanjuti surat permohonan <?php 
echo konvert('internship_program', $dqir['PROGRAM_ID'], 'PROGRAM');
?>
 dari <?php 
echo konvert('institute', $dque['INSTITUTE_ID'], 'INSTITUTE_NAME');
?>
. Bersama ini kami informasikan bahwa untuk saat ini kami belum dapat menerima/menjawab perihal penerimaan siswa yang Bapak/Ibu ajukan karena beberapa kebijakan.</p>

<p>Demikian kami sampaikan dan terima kasih atas perhatiannya.</p>

<p>Hormati kami,<br>
<b>PT. GMF AeroAsia<br>
<?php 
echo $dqts['S_VALUE'];
?>
</b></p>

<p>&nbsp;</p>

<p><b><?php 
Esempio n. 17
0
        ?>
		<tr>
			<td class="text-center"><?php 
        echo $i++;
        ?>
</td>
			<td class="text-center"><?php 
        echo $d['username'];
        ?>
</td>
			<td><?php 
        echo $d['nama'];
        ?>
</td>
			<td class="text-center"><?php 
        echo konvert('jurusan', $d['jurusan'], 'nama');
        ?>
</td>
			<td class="text-center"><?php 
        echo $d['level'];
        ?>
</td>
			<td class="text-center"><?php 
        echo tbl_ubah('?hal=pengguna&act=ubah&id=' . $d['id']);
        ?>
 <?php 
        echo tbl_hapus('?hal=pengguna&act=hapus&id=' . $d['id']);
        ?>
</td>
		</tr>
		<?php 
Esempio n. 18
0
        ?>
/<?php 
        echo konvert('tapel', $tapel, 'tapel_akhir');
        ?>
)</h3>
	<canvas id="myChart" heigth="400"></canvas>
</div>
<div class="col-lg-10 col-lg-offset-1">
	<h3 class="text-center">Tabel <br>Kelas <?php 
        echo konvert('kelas', $kelas, 'nama');
        ?>
 (<?php 
        echo konvert('tapel', $tapel, 'tapel_awal');
        ?>
/<?php 
        echo konvert('tapel', $tapel, 'tapel_akhir');
        ?>
)</h3>
	<table class="table table-condensed table-bordered">
		<thead>
			<tr>
				<th class="col-lg-1 text-center">No</th>
				<th>Nama Siswa</th>
				<th class="col-lg-2 text-center">Jumlah Pelanggaran</th>
				<th class="col-lg-1 text-center">Poin</th>
			</tr>
		</thead>
		<tbody>
		  <?php 
        $o = 1;
        foreach ($dt as $dt) {
Esempio n. 19
0
><a href="?hal=jurusan"><span class="glyphicon glyphicon-th" aria-hidden="true"></span> Jurusan</a></li>
	                    <li <?php 
    echo aktif('kelas');
    ?>
><a href="?hal=kelas"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> Kelas</a></li>
	                    <li <?php 
    echo aktif('pengguna');
    ?>
><a href="?hal=pengguna"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> Master Data Pengguna</a></li>
	                  </ul>
	                </li>
	              </ul>
	              <ul class="nav navbar-nav navbar-right">
	                <li class="dropdown">
	                  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> <?php 
    echo konvert('users', $_SESSION['userid'], 'nama');
    ?>
 <span class="caret"></span></a>
	                  <ul class="dropdown-menu">
	                    <li><a href="?hal=profil"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Ubah Profil</a></li>
	                    <li><a href="logout.php"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> Logout</a></li>
	                  </ul>
	                </li>
	              </ul>
	            <?php 
} else {
    ?>
		            <form class="navbar-form navbar-right" action="login.php" method="post">
						<div class="form-group">
							<input type="text" class="form-control" name="user" placeholder="Username">
							<input type="password" class="form-control" name="pass" placeholder="Password">
Esempio n. 20
0
 public function setSubTag($cat)
 {
     $this->subTag = konvert($cat);
 }
Esempio n. 21
0
 private function getTitle()
 {
     return str_replace("-", " ", konvert("{$this->title}"));
 }
Esempio n. 22
0
 function Display()
 {
     global $ua;
     //utilizamos la variable global "$ua" que se declara en el archivo "getCelularHeader.php"
     global $CELULARES_PESO_SIMPLE;
     $html = $this->_loadTemplate();
     $estilos = $this->loadStyleSheet();
     $html = str_replace("#ESTILOS#", $estilos, $html);
     $html = str_replace("#BLACKBERRY_STYLES#", '<link rel="stylesheet" type="text/css" media="handset" href="./estilos/estilos.css" />', $html);
     $tipo_cabezal = "chico";
     //Por si el modelo no es soportado o alguna otra cosa, asumimos que el m�s chico de todos se puede ver
     if (miscFunctions::soportaAnchoMayor($this->conn->db, $ua)) {
         $tipo_cabezal = "grande";
         $html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_GRANDE, $html);
     }
     if (miscFunctions::soportaAnchoMedio($this->conn->db, $ua)) {
         $tipo_cabezal = "mediano";
         $html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_MEDIANA, $html);
     }
     if (miscFunctions::soportaAnchoChico($this->conn->db, $ua)) {
         $tipo_cabezal = "chico";
         $html = str_replace("#ANCHO_PANTALLA#", ANCHO_PANTALLA_CHICA, $html);
     }
     //Cargamos los LOGOS-EXTRAS
     $tpl_extras_logos = $this->loadExtraTemplates($this->extras_logos_tpl);
     $html = str_replace("#LOGOS-EXTRAS#", $tpl_extras_logos, $html);
     //Cargamos los PIE-EXTRAS
     $tpl_extras_urls = $this->loadExtraTemplates($this->extras_pie_tpl);
     $html = str_replace("#PIE-EXTRAS#", $tpl_extras_urls, $html);
     if ($this->marca_blanca || MARCA_BLANCA == 1) {
         $html = preg_replace("/#LOGO-WZZP#.+#LOGO-WZZP#/", "", $html);
     } else {
         $html = preg_replace("/#LOGO-WZZP#/", "", $html);
     }
     //la constante HIDE_HEADER se debe definir en el archivo constantes.php de cada wap
     if (HIDE_HEADER === 1) {
         $html = preg_replace("/#IMG-HEADER#.+#IMG-HEADER#/", "", $html);
     } else {
         $html = preg_replace("/#IMG-HEADER#/", "", $html);
     }
     if (ANCEL == 1) {
         if (SHOW_LINK_DALE == 1) {
             $seccion_pie_dest = new Seccion("", "center", "", SECCION_SIN_TITULO);
             $link_dale = null;
             if (servicio3G()) {
                 $link_dale = new Link("http://www.3g.dale.com.uy", "<br/>Volver a portal 3G");
             } else {
                 $link_dale = new Link("http://www.dale.com.uy", "<br/>Volver a portal DALE");
             }
             $html = str_replace("#LINK-DALE#", $link_dale->Display(), $html);
         }
     }
     $html = str_replace("#LINK-DALE#", "", $html);
     //super HACZOR malo:
     $html = str_replace(".list-item {float:left;  width: 65px; ", ".list-item {", $html);
     $html = str_replace("#TIPO_CABEZAL#", $tipo_cabezal, $html);
     $html = str_replace("#TITULO#", $this->titulo, $html);
     $html_interior = parent::Display();
     if (TIGO_GT == 1 || VIVA_BO == 1 || CLARO_PA == 1) {
         $html_interior = str_replace("\$", "", $html_interior);
     }
     if (AGREGAR_EXTRA_PESOS == 1) {
         $html_interior = str_replace("\$", "\$\$", $html_interior);
     }
     /* * /
     		if(in_array($ua, $CELULARES_PESO_SIMPLE)) {
     			$html_interior = str_replace("$$", "$ ", $html_interior);
     		}
     		//*/
     $html = str_replace("#COMPONENTES#", $html_interior, $html);
     $html = str_replace("#HTTP_REFERER#", $_SERVER['HTTP_REFERER'], $html);
     $html = str_replace("&amp;", "&", $html);
     ///$html = str_replace("&", "&amp;", $html);
     $html = konvert($html);
     $html = str_replace("�", "&#241;", $html);
     $html = str_replace("�", "&#225;", $html);
     $html = str_replace("é", "&#233;", $html);
     $html = str_replace("í", "&#237;", $html);
     $html = str_replace("ó", "&#243;", $html);
     $html = str_replace("ú", "&#250;", $html);
     $html = str_replace("Ñ", "&#209;", $html);
     $html = str_replace("Á", "&#193;", $html);
     $html = str_replace("É", "&#201;", $html);
     $html = str_replace("Í", "&#205;", $html);
     $html = str_replace("Ó", "&#211;", $html);
     $html = str_replace("Ú", "&#218;", $html);
     $html = str_replace("¿", "&#191;", $html);
     $html = str_replace(chr(173), "", $html);
     /*
     		$html = str_replace("&", "&amp;", $html);
     		$html = str_replace("�", "&#241;", $html);
     		$html = str_replace("�", "&#225;", $html);
     		$html = str_replace("é", "&#233;", $html);
     		$html = str_replace("í", "&#237;", $html);
     		$html = str_replace("ó", "&#243;", $html);
     		$html = str_replace("ú", "&#250;", $html);
     		$html = str_replace("Ñ", "&#209;", $html);
     		$html = str_replace("Á", "&#193;", $html);
     		$html = str_replace("É", "&#201;", $html);
     		$html = str_replace("Í", "&#205;", $html);
     		$html = str_replace("Ó", "&#211;", $html);
     		$html = str_replace("Ú", "&#218;", $html);
     		$html = str_replace("¿", "&#191;", $html);
     		**/
     $html = str_replace("&amp;nbsp;", "&#32;", $html);
     $partes = explode("id=\"paginado\"", $html);
     $nuevo_html = "";
     foreach ($partes as $i => $p) {
         if ($i == 0) {
             $i = "";
         }
         $nuevo_html .= $p . " id=\"paginado{$i}\" ";
         $largo_cola = strlen(" id=\"paginado{$i}\"");
     }
     $nuevo_html = substr($nuevo_html, 0, strlen($nuevo_html) - $largo_cola);
     $html = $nuevo_html;
     //  $html = strtolower($html);
     return $html;
 }
Esempio n. 23
0
 function load($cat = "", $subcat = "")
 {
     $sql = "SELECT c.*, p.nombre nombre_proveedor, cc.descripcion as nombre_categoria, gi.descr longdesc, gi.descr_wap shortdesc, gi.screenshots\n\t\tFROM Web.contenidos c\n\t\tINNER JOIN Web.gamesInfo gi ON (c.id=gi.game)\n\t\tINNER JOIN Web.contenidos_proveedores p ON (p.id=c.proveedor)\n\t\tINNER JOIN Web.contenidos_cat cc ON (cc.id=c.categoria)\n\t\tWHERE c.id={$this->code} ";
     $rs = mysql_query($sql, $this->dbc);
     if (!$rs) {
         die("ERROR SQL: {$sql} -> " . mysql_error($this->dbc));
     }
     $obj = mysql_fetch_object($rs);
     // seteo categorias
     $search_keywords = "{$obj->nombre}, {$obj->nombre_categoria}, juego, java, imagen, {$obj->autor}, {$obj->nombre_proveedor}";
     //		list($ruta,$pic1,$pic2,$pic3) = explode(",", $obj->screenshots);
     $this->icons = "/netuy/java/cajas/" . $obj->id . ".gif";
     // descomentar la sgte linea para ftp local (240)
     //		$this->icons = str_replace("/netuy", "", $this->icons);
     // preparo map al objeto
     $this->set("nombre_contenido", konvert($obj->nombre));
     $this->set("proveedor", "Globalnet");
     $this->set("type", "Java");
     //		list ($cat, $subcat) = $this->get_tigo_categories($obj->id, $this->tipo_cont);
     $this->set("categoria", konvert($cat));
     $this->set("subcategoria", konvert($subcat));
     $this->set("operator", "");
     $this->set("search_keywords", konvert("{$search_keywords}"));
     $this->set("shortdesc", konvert($obj->shortdesc));
     $this->set("longdesc", konvert($obj->longdesc));
     $this->set("cls", "Premium");
     $this->set("provider_code", "");
     $this->set("cla", "");
     $totalCels = 0;
     $celsNotFound = 0;
     $sqlErrors = 0;
     $celsSupported = 0;
     $celsNotSupported = 0;
     foreach ($this->devices as $devUA) {
         $totalCels++;
         $idCel = obtenerIDCelular($devUA, $this->dbc);
         if ($idCel == 0) {
             $celsNotFound++;
             //				echo "$this->code: id Cel no encontrado para ua=$devUA<br/>";
         } else {
             if ($idCel === FALSE) {
                 $sqlErrors++;
                 //				echo "$this->code: SQL error buscando idCel para ua=$devUA<br/>";
             } else {
                 if (soportaJuego($this->dbc, $idCel, $obj->id)) {
                     $celsSupported++;
                     // echo "$devUA SOPORTA!!!\n";
                     $sql2 = " SELECT archivo FROM Web.gamecomp WHERE juego={$obj->id} AND celular={$idCel} ";
                     $rs2 = mysql_query($sql2, $this->dbc);
                     if (!$rs2) {
                         echo "ERRORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR SQL";
                     }
                     $obj2 = mysql_fetch_object($rs2);
                     $this->jads[] = $obj2->archivo;
                     $this->jars[] = str_replace(".jad", ".jar", $obj2->archivo);
                     $kfName = basename($obj2->archivo, ".jad");
                     $this->uaFiles[$kfName] .= "{$devUA},";
                 } else {
                     $celsNotSupported++;
                     //				echo "$this->code: id Cel no soportado para ua=$devUA (idCel=$idCel) <br/>";
                 }
             }
         }
     }
     // muestro resumen del proceso
     echo "<table>\n\t\t<tr><td>CONTENIDO</td><td>{$obj->id} ({$obj->nombre})</td></tr>\n\t\t<tr><td>TOTAL CELS TIGO </td><td> {$totalCels} <a href='errorDetail.php?d=celstigo&id={$obj->id}' target='blank'>ver detalle</a></td></tr>\n\t\t<tr><td>TOTAL CELS NO ENCONTRADOS </td><td> {$celsNotFound} <a href='errorDetail.php?d=notfound&id={$obj->id}' target='blank'>ver detalle</a></td></tr>\n\t\t<tr><td>TOTAL ERRORES SQL </td><td> {$sqlErrors} </td></tr>\n\t\t<tr><td>TOTAL CELS SOPORTADOS OK </td><td> {$celsSupported} <a href='errorDetail.php?d=supported&id={$obj->id}' target='blank'>ver detalle</a></td></tr>\n\t\t<tr><td>TOTAL CELS ENCONTRADOS PERO NO SOPORTADOS POR EL JUEGO </td><td> {$celsNotSupported} <a href='errorDetail.php?d=notsupported&id={$obj->id}' target='blank'>ver detalle</a></td></tr>\n\t\t</table>\n\t\t";
 }
Esempio n. 24
0
			<td><?php 
        echo konvert2('siswa', 'nis', $d['idsiswa'], 'nama');
        ?>
</td>
		</tr>
		<tr>
			<td>Total Poin</td>
			<td><?php 
        echo cekpoin($d['idsiswa']);
        ?>
</td>
		</tr>
		<tr>
			<td>Sanksi</td>
			<td><?php 
        echo konvert('sanksi', $d['idsanksi'], 'nama');
        ?>
</td>
		</tr>		
			<input type="hidden" name="idtindak" id="inputIdtindak" class="form-control" value="<?php 
        echo $id;
        ?>
">
		<tr>
			<td>Status</td>
			<td>
				<div class="radio">
					<label>
						<input type="radio" name="status" id="inputJk" value="1" <?php 
        cekbok($d['tindak'], '1');
        ?>
Esempio n. 25
0
        ?>
</td>
			<td class="text-center"><?php 
        echo $d['nis'];
        ?>
</td>
			<td><?php 
        echo $d['nama'];
        ?>
</td>
			<td class="text-center"><?php 
        echo konvert('jurusan', $d['jurusan'], 'nama');
        ?>
</td>
			<td class="text-center"><?php 
        echo konvert('kelas', $d['kelas'], 'nama');
        ?>
</td>
			<td class="text-center"><?php 
        echo tbl_ubah('?hal=siswa&act=ubah&id=' . $d['id']);
        ?>
 <?php 
        echo tbl_hapus('?hal=siswa&act=hapus&id=' . $d['id']);
        ?>
</td>
		</tr>
		<?php 
    }
    ?>
	</tbody>
</table>
Esempio n. 26
0
 public function setTag($cat)
 {
     $this->tag = konvert($cat);
 }
Esempio n. 27
0
 function load($cat = "", $subcat = "")
 {
     $sql = "SELECT c.*, p.nombre nombre_proveedor, cc.descripcion as nombre_categoria\n\t\tFROM Web.contenidos c\n\t\tINNER JOIN Web.contenidos_proveedores p ON (p.id=c.proveedor)\n\t\tINNER JOIN Web.contenidos_cat cc ON (cc.id=c.categoria)\n\t\tWHERE c.id={$this->code} ";
     $rs = mysql_query($sql, $this->dbc);
     if (!$rs) {
         die("ERROR SQL: {$sql} -> " . mysql_error($this->dbc));
     }
     $obj = mysql_fetch_object($rs);
     // seteo cateogiras
     $search_keywords = "{$obj->nombre}, {$obj->nombre_categoria}, wallpaper, imagen, {$obj->autor}";
     // archivo en ftp
     if ($obj->archivo == "") {
         $this->icons = $obj->referencia;
     } else {
         $this->icons = $obj->archivo;
     }
     $this->icons = str_replace("128x128", "320x320", $this->icons);
     $this->icons = str_replace(".gif", ".jpg", $this->icons);
     // descomentar la sgte linea para ftp local (240)
     $this->icons = str_replace("/netuy", "", $this->icons);
     // preparo map al objeto
     $this->set("nombre_contenido", konvert($obj->nombre));
     //		$this->set("proveedor", $obj->nombre_proveedor);
     $this->set("proveedor", "Globalnet");
     //		$this->set("categoria", $obj->nombre_categoria);
     // Autos y Vehiculos
     //		$this->set("categoria", "210");
     //		list ($cat, $subcat) = $this->get_tigo_categories($obj->id, $this->tipo_cont);
     $this->set("categoria", konvert($cat));
     $this->set("subcategoria", konvert($subcat));
     $this->set("operator", "");
     $this->set("royalty", "Globalnet");
     $this->set("search_keywords", konvert("{$search_keywords}"));
     $this->set("musiclabel", "");
     $this->set("artista", konvert($obj->autor));
     $this->set("movie", "");
     $this->set("album", "");
     $this->set("provider_code", "");
     $this->set("cla", "");
     $this->set("expirydate", "");
     $this->set("activatedate", "");
 }