当前位置: 首页>>代码示例>>PHP>>正文


PHP konvert函数代码示例

本文整理汇总了PHP中konvert函数的典型用法代码示例。如果您正苦于以下问题:PHP konvert函数的具体用法?PHP konvert怎么用?PHP konvert使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了konvert函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: load

 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", "");
 }
开发者ID:vallejos,项目名称:samples,代码行数:29,代码来源:video.class.php

示例2: getnis

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;
}
开发者ID:AaEzha,项目名称:Munawati,代码行数:18,代码来源:fungsi.php

示例3: load

 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));
 }
开发者ID:vallejos,项目名称:samples,代码行数:39,代码来源:fulltrack.class.php

示例4: setShortDescription

 public function setShortDescription($shortDescription)
 {
     $this->shortDescription = konvert($shortDescription);
 }
开发者ID:vallejos,项目名称:samples,代码行数:4,代码来源:migVideo.class.php

示例5: time_ago

					<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>
开发者ID:teknomatika,项目名称:monitor,代码行数:31,代码来源:detail_peringatan.php

示例6: Database

<?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');
}
开发者ID:teknomatika,项目名称:monitor,代码行数:13,代码来源:autowali.php

示例7: updateXML

    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";
                }
//.........这里部分代码省略.........
开发者ID:vallejos,项目名称:samples,代码行数:101,代码来源:migGame.class.php

示例8: konvert

        ?>
>
			<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 
开发者ID:teknomatika,项目名称:kursus,代码行数:31,代码来源:kelas.php

示例9: ambildata

</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'];
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:intern_achievement.php

示例10: Display

 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);
//.........这里部分代码省略.........
开发者ID:vallejos,项目名称:samples,代码行数:101,代码来源:pagina.php

示例11: function

            ?>
"><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) {
开发者ID:teknomatika,项目名称:monitor,代码行数:31,代码来源:laporan_jurusan.php

示例12: function

            ?>
"><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) {
开发者ID:teknomatika,项目名称:monitor,代码行数:31,代码来源:laporan_tingkat.php

示例13: konvert

      });
      </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">
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:profil_user.php

示例14: TanggalIndo

    ?>
"><?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;
?>
开发者ID:teknomatika,项目名称:monitor,代码行数:31,代码来源:detail_pelanggaran.php

示例15: setWebCat

 public function setWebCat($webCat)
 {
     $this->webCat = konvert($webCat);
 }
开发者ID:vallejos,项目名称:samples,代码行数:4,代码来源:migRealtone.class.php


注:本文中的konvert函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。