Clean
@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Connects to the database using the parameters from above.
|
||||
* BE SURE TO CHANGE THE DATABASE PARAMS TO REFLECT YOUR DATABASE SETTINGS!
|
||||
*/
|
||||
|
||||
function dbconnect()
|
||||
{
|
||||
try
|
||||
{
|
||||
//echo DB_HOST_NAME.' '.DB_USER_NAME.' '.DB_USER_PASS;
|
||||
mysql_connect(DB_HOST_NAME,DB_USER_NAME,DB_USER_PASS);
|
||||
//$db = new PDO("mysql:host=".DB_HOST_NAME.";dbname=".DB_APORTIL.";charset=utf8", DB_USER_NAME, DB_USER_PASS);
|
||||
@mysql_select_db(DB_APORTIL) or die (mysql_error()." ".DB_HOST_NAME." ");
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
echo "line : ".$e->getLine()." ".$e->getMessage();
|
||||
}
|
||||
|
||||
//include("config.php");
|
||||
//mysql_connect($opts["hn"], $opts["un"],$opts["pass"]);
|
||||
// @mysql_select_db($opts["db"]) or die (mysql_error());
|
||||
}
|
||||
dbconnect();
|
||||
$dbconnect = 1;
|
||||
|
||||
?>
|
||||
@ -1,217 +0,0 @@
|
||||
<?php
|
||||
if(preg_match("/libdefine.php/i", $_SERVER['PHP_SELF'])){header("location: index.php");die;}
|
||||
$cllib=new MY_HTML();
|
||||
$MYPATH=$cllib->GET_PATH();
|
||||
$MYHOST=$_SERVER['HTTP_HOST'];
|
||||
// === Detecting just only Web server based on windows
|
||||
if(strtoupper(substr(PHP_OS,0,3))=='WIN'){$MYHOST.="/project";}
|
||||
|
||||
// ==== My SERVER CONFIG
|
||||
DEFINE("PATH_THEME","themes");
|
||||
DEFINE("PATH_INCLUDE","includes");
|
||||
DEFINE("PATH_MODULE","modules");
|
||||
DEFINE("PATH_LIB","lib");
|
||||
DEFINE("PDFLIB",PATH_MODULE."/pdf/fpdf.php");
|
||||
DEFINE("GIROTMP",PATH_MODULE."/pdf/gr.jpg");
|
||||
DEFINE("PDFFILE","http://$MYHOST/ssotcel/modules/pdf");
|
||||
DEFINE("XLSFILE","http://$MYHOST/ssotcel/xlsdoc");
|
||||
DEFINE("URLPATH","http://$MYHOST/ssotcel/");
|
||||
DEFINE("GET_PDF",$MYPATH."lib");
|
||||
DEFINE("PATH_MANUALBOOK",$MYPATH."manualbook");
|
||||
DEFINE("DBF_PATH",$cllib->GET_DBFPATH());
|
||||
DEFINE("UPLOAD_DIR","uploads");
|
||||
DEFINE("LOGIN_PAGE","modules/html.login.php");
|
||||
DEFINE("PATH_OBJECT","objectx");
|
||||
DEFINE("PAGEHOME",PATH_OBJECT."/obj_home/home.php");
|
||||
DEFINE("IP_LDAP","172.20.111.11");
|
||||
|
||||
//DEFINE("LDAP_OPT_DIAGNOSTIC_MESSAGE", 0x0032);
|
||||
//DEFINE("PAGEHOMEHCM",PATH_OBJECT."/obj_home/homehcm.php");
|
||||
DEFINE("DB_APORTIL","dbaportil");
|
||||
DEFINE("SMTP_ADDRESS",$MYHOST);
|
||||
DEFINE("SMTP_RELAY","");
|
||||
DEFINE("EMAIL_SENDERNAME","");
|
||||
DEFINE("EMAIL_SENDERALIAS","Telkomcel");
|
||||
DEFINE("EMAIL_SUBJECT","Info Telkomcel");
|
||||
// DEFINE("DB_HOST_NAME","172.17.12.21");
|
||||
DEFINE("DB_HOST_NAME","192.168.1.4");
|
||||
//DEFINE("DB_HOST_NAME","172.17.12.71");
|
||||
// DEFINE("DB_USER_NAME","ssotcel");
|
||||
DEFINE("DB_USER_NAME","appaportil");
|
||||
DEFINE("TBL_PAGE_LIMIT","1000");
|
||||
|
||||
DEFINE("ADMIN_CONTACT","<a href=\"mailto:itnsr09@gmail.com\">itnsr09@gmail.com</a>");
|
||||
DEFINE("ERR_MSG_USER_DISABLED","Err : Maaf User anda saat ini sedang tidak aktif!");
|
||||
DEFINE("ERR_MSG_USER_NOT_FOUND","Err : User anda tidak memiliki akses!");
|
||||
|
||||
DEFINE('_FORUM_TITLE','Forum');
|
||||
DEFINE('_NEWS','News');
|
||||
DEFINE('_TOPIC','Topik');
|
||||
DEFINE('_FORUM_POST','Post');
|
||||
DEFINE('_FORUM_DESC','Pilihlah sebuah forum dari list dibawah ini, kemudian pilih topik yang akan dibaca.');
|
||||
DEFINE('_NEWS_DESC','News menampilkan informasi untuk pengguna dari sistem ini.');
|
||||
DEFINE('_THANK_SUB','Terima kasih atas partisipasi anda. <br />');
|
||||
DEFINE('_NOT_EXIST','');
|
||||
DEFINE('_DATE','Tanggal');
|
||||
DEFINE('_HEADER_TITLE','Judul');
|
||||
DEFINE('_HEADER_AUTHOR','Pengirim');
|
||||
DEFINE('_HEADER_REPLIES','Respon');
|
||||
DEFINE('_HEADER_MSG','Pesan');
|
||||
DEFINE('_NEW_MSG','Topik Baru');
|
||||
DEFINE('_REPLY_MSG','Balas Pesan');
|
||||
DEFINE('_QUOTE_MSG','Kirim Pesan');
|
||||
|
||||
// ----- ERROOR Number'
|
||||
DEFINE('ERROR400',$cllib->MSG->SHOWMSG("alert alert-error","","Error!","User / Password Kosong, Mohon diulang kembali!."));
|
||||
DEFINE('ERROR401',$cllib->MSG->SHOWMSG("alert alert-error","","Error!","User / Password salah, Mohon diulang kembali!."));
|
||||
DEFINE('ERROR402',$cllib->MSG->SHOWMSG("alert alert-warning","","Warning!","User / Password Tidak boleh sama, Mohon reset Password anda!."));
|
||||
DEFINE('ERROR403',$cllib->MSG->SHOWMSG("alert alert-warning","","Warning!","User Belum diaktifkan , Mohon hubungi administrator anda!."));
|
||||
|
||||
//--komponen user
|
||||
DEFINE('_WELCOME','Selamat Datang!');
|
||||
DEFINE('_WELCOME_DESC','Anda memiliki akses pada area ini.');
|
||||
DEFINE('_USER_DETAILS_SAVE','Perubahan anda telah disimpan.');
|
||||
DEFINE('_PASS_MATCH','Password tidak sama');
|
||||
DEFINE('_PASS_6','Password anda kurang dari 6 karakter');
|
||||
DEFINE('_PROF_NAME','Anda harus mengisi kolom nama');
|
||||
DEFINE('_PROF_NIP','Anda harus mengisi kolom NIK');
|
||||
DEFINE('_PROF_USER','Anda harus mengisi kolom username');
|
||||
DEFINE('_PROF_PASS','Anda harus mengisi kolom password');
|
||||
DEFINE('_PROF_VPASS','Anda harus mengisi kolom verify password');
|
||||
DEFINE('_PROF_BRANCH','Anda harus memilih kolom branch');
|
||||
DEFINE('_PROF_COST','Anda harus memilih kolom cost');
|
||||
//DEFINE('DB_USER_PASS',$cllib->de("qgk`qep`tgrw")); //pmmr
|
||||
DEFINE('DB_USER_PASS',"appaportil2019"); //pmmr
|
||||
DEFINE('_PROF_GROUP','Anda harus memilih kolom group');
|
||||
DEFINE('_PROF_GROUP_NAME','Anda harus memilih kolom nama group');
|
||||
DEFINE('_PROF_GID','Anda harus mengisi kolom nilai group');
|
||||
DEFINE('_NIP_REG','NIK telah terdaftar');
|
||||
DEFINE('_USER_REG','Username telah digunakan');
|
||||
|
||||
//--administrator menu
|
||||
DEFINE('_ADM_TITLE','Administrator Menu');
|
||||
DEFINE('_ADM_HOME','Utama');
|
||||
DEFINE('_ADM_MOD','Modul');
|
||||
DEFINE('_ADM_MENU','Menu');
|
||||
DEFINE('_ADM_USER','User');
|
||||
DEFINE('_ADM_GROUP','Group');
|
||||
DEFINE('_ADM_UPDATE','Update');
|
||||
DEFINE('_ADM_PROFIL','Profil');
|
||||
DEFINE('_ADM_BACKUP','Backup');
|
||||
DEFINE('_ADM_ADD','Tambah');
|
||||
DEFINE('_ADM_EDIT','Ubah');
|
||||
DEFINE('_ADM_UPLOAD','Upload');
|
||||
DEFINE('_ADM_RESTORE','Restore');
|
||||
DEFINE('_ADM_TYPE','Type');
|
||||
|
||||
|
||||
//--tabel mod_home
|
||||
DEFINE('_HOME_TITLE','Judul');
|
||||
DEFINE('_HOME_ACT','Aktif');
|
||||
DEFINE('_HOME_FUNC','Fungsi');
|
||||
DEFINE('_HOME_IMAGE','Gambar');
|
||||
DEFINE('_HOME_TEXT','Teks');
|
||||
DEFINE('_HOME_POST','Posisi Gambar');
|
||||
DEFINE('_ACK_POST','Pilih posisi gambar');
|
||||
DEFINE('_ACK_IMG','Pilih gambar');
|
||||
|
||||
//--tabel mod_modules
|
||||
DEFINE('_MOD_TITLE','Judul');
|
||||
DEFINE('_MOD_MOD','Modul');
|
||||
DEFINE('_MOD_CONT','Isi');
|
||||
DEFINE('_MOD_ORDER','Urutan');
|
||||
DEFINE('_MOD_LEVEL','Level');
|
||||
DEFINE('_MOD_ACT','Aktif');
|
||||
DEFINE('_MOD_FUNC','Fungsi');
|
||||
DEFINE('_MOD_PARAMS','Parameter');
|
||||
DEFINE('_MOD_POST','Position');
|
||||
DEFINE('_UPLOAD_DIR','upload');
|
||||
|
||||
//--tabel mod_menus
|
||||
DEFINE('_MENU_TITLE','Teks Menu');
|
||||
DEFINE('_MENU_MOD','Modul');
|
||||
DEFINE('_MENU_ORDER','Urutan');
|
||||
DEFINE('_MENU_LEVEL','User');
|
||||
DEFINE('_MENU_ACT','Aktif');
|
||||
DEFINE('_MENU_ACCS','Akses');
|
||||
DEFINE('_MENU_FUNC','Fungsi');
|
||||
DEFINE('_MENU_URL','URL');
|
||||
|
||||
|
||||
//--tabel mod_users
|
||||
DEFINE('_USER_NIK','NIK');
|
||||
DEFINE('_USER_NAME','Nama');
|
||||
DEFINE('_USER_USER','Username');
|
||||
DEFINE('_USER_LEVEL','Level');
|
||||
DEFINE('_USER_NPASS','Password Baru');
|
||||
DEFINE('_USER_PASS','Password');
|
||||
DEFINE('_USER_VPASS','Konfirmasi Password');
|
||||
DEFINE('_USER_EMAIL','Email');
|
||||
DEFINE('_USER_FUNC','Fungsi');
|
||||
DEFINE('_USER_GROUP','Hak Akses');
|
||||
DEFINE('_USER_BRANCH','Branch');
|
||||
DEFINE('_USER_COSTC','Cost Center');
|
||||
DEFINE('PAGE_TEXT','Page');
|
||||
DEFINE('LIMIT_TEXT','Limit');
|
||||
DEFINE('PAGE_LIMIT','10');
|
||||
DEFINE('PAGE_LIMIT_PART','100');
|
||||
|
||||
//--tabel mod_group
|
||||
DEFINE('_GROUP_TITLE','Group');
|
||||
DEFINE('_GROUP_ID','Id Group');
|
||||
DEFINE('_GROUP_FUNC','Fungsi');
|
||||
|
||||
|
||||
|
||||
//--tabel mod_profil
|
||||
DEFINE('_PROFIL_TEXT','Teks Menu');
|
||||
DEFINE('_PROFIL_CONT','URL');
|
||||
DEFINE('_PROFIL_ACT','Aktif');
|
||||
DEFINE('_PROFIL_ORDER','Urutan');
|
||||
DEFINE('_PROFIL_FUNC','Fungsi');
|
||||
|
||||
|
||||
DEFINE('_LOGIN_INCOMPLETE','Username and password not match');
|
||||
DEFINE('_LOGIN_INCORRECT','Username not found');
|
||||
DEFINE('_NOT_AUTH','Access Denied, Restricted');
|
||||
DEFINE('_DO_LOGIN','Please login first');
|
||||
|
||||
|
||||
//--HTML COnfig
|
||||
DEFINE('_HTMLTAGOPEN',"<!DOCTYPE HTML><html>");
|
||||
DEFINE('_HEADTAGOPEN',"<head>");
|
||||
DEFINE('_HEADTAGCLOSE',"</head>");
|
||||
DEFINE('_BODYTAGOPEN',"<body onContextMenu=\"return false;\">");
|
||||
DEFINE('_BODYTAGCLOSE',"</body>");
|
||||
DEFINE('_HTMLTAGCLOSE',"</html>");
|
||||
|
||||
// ==== CHECK REGISTER KEY
|
||||
class MY_DEFINE extends MY_LIBRARY
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
//echo $this->enc("4s4ns4l3h");
|
||||
$SYSPATH="c:/windows/";
|
||||
//if(strtoupper(substr(PHP_OS,0,3))=='LI'){$MYHOST.="/project";}
|
||||
if(preg_match("/^linux/i",strtolower(php_uname()))){$SYSPATH="/usr/local/";}
|
||||
//echo $this->enc("4s4ns4l3h").".txt";return false;
|
||||
if(!file_exists($SYSPATH.$this->enc("4s4ns4l3h").".txt"))
|
||||
{
|
||||
//echo "f";
|
||||
echo "Your library <font color=\"red\">not registered</font>!.";
|
||||
exit();
|
||||
}
|
||||
|
||||
// ==== DEFINE Project NAME
|
||||
$qry="select projectid,projectversion,projectname,projectdesc
|
||||
from ".DB_APORTIL.".tbl_projectprofile";
|
||||
//echo $qry;return false;
|
||||
$spproject=$this->fn_get_fieldsvalues("projectid,projectversion,projectname,projectdesc",$qry);
|
||||
$projectid=$spproject[0];$projectversion=$spproject[1];$projectname=$spproject[2];$projectdesc=$spproject[3];
|
||||
DEFINE('PROJECTID',$projectid.".ver.".$projectversion);
|
||||
DEFINE('PROJECTVERSION',$projectversion);
|
||||
DEFINE('PROJECTNAME',$projectname);
|
||||
DEFINE('PROJECTDESCRIPTION',$projectdesc);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,699 +0,0 @@
|
||||
<?php
|
||||
if (preg_match("/libdhtmlx.php/i", $_SERVER['PHP_SELF'])){header("location: index.php");die;}
|
||||
class MY_DHTMLX extends MY_HTML
|
||||
{
|
||||
var $my_form;
|
||||
public function FN_DHTMLXNEWCOMBO($myForm,$comboname,$url)
|
||||
{
|
||||
if(!$url){$url="''";}
|
||||
echo "var $comboname=$myForm.getCombo(\"$comboname\");
|
||||
url=$url;
|
||||
//alert(url);
|
||||
$comboname.enableFilteringMode(true);
|
||||
if(url)
|
||||
{
|
||||
$comboname.load(url);
|
||||
}\n";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXNEWCOMBOIMAGE($myForm,$comboname,$url,$setdefaultImagePath)
|
||||
{
|
||||
if(!$url){$url="''";}
|
||||
echo "var $comboname=$myForm.getCombo(\"$comboname\");
|
||||
$comboname.setImagePath(\"".$setdefaultImagePath."\");
|
||||
url=$url;
|
||||
//alert(url);
|
||||
$comboname.enableFilteringMode(true);
|
||||
if(url)
|
||||
{
|
||||
$comboname.load(url);
|
||||
}\n";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXNEWCOMBOWITHARRAY($myForm,$comboname,$arr)
|
||||
{
|
||||
$valarr="''";
|
||||
if(is_array($arr)){$valarr="'".json_encode($arr)."'";}
|
||||
echo "var $comboname=$myForm.getCombo(\"$comboname\");
|
||||
url=$valarr;
|
||||
//alert(url);
|
||||
$comboname.enableFilteringMode(true);
|
||||
if(url)
|
||||
{
|
||||
$comboname.load(url);
|
||||
}\n";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXNEWCOMBOGRID($gridname,$getColumnCombo,$comboname,$url)
|
||||
{
|
||||
echo "var $comboname=$gridname.getColumnCombo($getColumnCombo);
|
||||
$comboname.enableFilteringMode(false);
|
||||
$comboname.readonly(true);
|
||||
url=$url;
|
||||
//if($getColumnCombo==14){alert(url);}
|
||||
$comboname.load(url);";
|
||||
// var cbousergroup2=dguser.getColumnCombo(7);
|
||||
// cbousergroup2.enableFilteringMode(false);
|
||||
// cbousergroup2.readonly(true);
|
||||
// url=fn_dhtmlxloadobject('".$this->enc("obj_user")."','obj=".$this->enc("-")."&task=".$this->enc("addcombo")."&tableobj=tbl_usergroup|groupuser,groupuser');
|
||||
// cbousergroup2.load(url);
|
||||
}
|
||||
|
||||
public function FN_COMBOVALIDATIONVALUE($comboname,$tablename,$otherevent=null)
|
||||
{
|
||||
echo "$comboname.attachEvent(\"onChange\",function(val){
|
||||
if(val!=='')
|
||||
{
|
||||
var result=ajaxuridhtmlx('".$this->enc("obj_controller")."','&task=".$this->enc("getvalidcombo")."&tablename=$tablename&id='+val+'&validationvalue='+$comboname.getComboText());
|
||||
var spresult=result.split('|');
|
||||
if(trim(spresult[0])!='ok'){fn_dhtmlxmessage('error','Error Found : '+spresult[1]);$comboname.setComboText('');$comboname.setComboValue('');return false;}
|
||||
$otherevent
|
||||
}
|
||||
});";
|
||||
}
|
||||
|
||||
public function FN_COMBODHMTLXFORM_GETJSON($myquery,$withoutindex0=null,$withimg=null)
|
||||
{
|
||||
$img="";
|
||||
// if($withimg){$img="img:\"\"";}
|
||||
$rsqry=$this->selectquery($myquery);
|
||||
if($rsqry)
|
||||
{
|
||||
$rtn="{options:[";
|
||||
if(!$withoutindex0)
|
||||
{
|
||||
//$rtn.="options:[{value:\"\",text:\"\"}";
|
||||
$rtn.="{value:\"\",text:\"\"},";
|
||||
}
|
||||
$rtnval="";
|
||||
if($this->REC_ROWS_COUNT($rsqry)>0)
|
||||
{
|
||||
while($rw=$this->data_row_array($rsqry))
|
||||
{
|
||||
if($withimg){$img=",img:\"".$rw[2]."\"";}
|
||||
$rtnval.="{value:\"".$rw[0]."\",text:\"".$rw[1]."\"$img},";
|
||||
}
|
||||
//$rtn.=substr($rtnval,0,strlen($rtnval)-1);
|
||||
$rtnval=substr($rtnval,0,strlen($rtnval)-1);
|
||||
$rtn.=$rtnval;
|
||||
}
|
||||
$rtn.="]}";
|
||||
}
|
||||
$this->clearrecordset($rsqry);
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function FN_COMBOVALIDATIONVALUE2($myForm,$comboname,$tablename,$url,$otherevent=null,$resulttovariable=null)
|
||||
{
|
||||
$rtn="var $comboname=$myForm.getCombo(\"".$comboname."\");
|
||||
$comboname.enableFilteringMode(true);";
|
||||
//if($url){$rtn.="$comboname.load($url);alert($url);";}
|
||||
if($url){$rtn.="$comboname.load($url);";}
|
||||
$rtn.=" $comboname.attachEvent(\"onChange\",function(val){
|
||||
if($comboname.getComboText())
|
||||
{
|
||||
if(val!=='')
|
||||
{";
|
||||
if($tablename)
|
||||
{
|
||||
$rtn.="var result=ajaxuridhtmlx('".$this->enc("obj_controller")."','&task=".$this->enc("getvalidcombo")."&tablename=$tablename&id='+val+'&validationvalue='+$comboname.getComboText());
|
||||
var spresult=result.split('|');
|
||||
if(trim(spresult[0])!='ok'){fn_dhtmlxmessage('error','Error Found : '+spresult[1]);$comboname.setComboText('');$comboname.setComboValue('');return false;}";
|
||||
}
|
||||
$rtn.=" $otherevent
|
||||
}
|
||||
if(val==null){fn_dhtmlxmessage('error','Error Found : Mohon Maaf, Pilihan <b>'+$comboname.getComboText()+' tidak terdaftar</b>');$comboname.setComboText('');$comboname.setComboValue('');return false;}
|
||||
else if(val==''){fn_dhtmlxmessage('error','Error Found : Silahkan Pilih pilihan anda!');$comboname.setComboText('');$comboname.setComboValue('');return false;}
|
||||
}
|
||||
});";
|
||||
if($resulttovariable){return $rtn;}else{echo $rtn;}
|
||||
}
|
||||
|
||||
public function FN_COMBOVALIDATIONVALUEARRAY($myForm,$comboname,$arrvalue,$otherevent=null)
|
||||
{
|
||||
echo "var $comboname=$myForm.getCombo(\"".$comboname."\");
|
||||
$comboname.enableFilteringMode(true);";
|
||||
//if($url){echo "$comboname.load($url);";}
|
||||
echo " $comboname.addOption(".json_encode($arrvalue).");";
|
||||
echo " $comboname.attachEvent(\"onChange\",function(val){
|
||||
if(val==null){fn_dhtmlxmessage('error','Error Found : Mohon Maaf Pilihan <b>'+$comboname.getComboText()+' tidak terdaftar</b>, Silahkan pilih sesuai yang ada pada Daftar Combo<br/>TERIMA KASIH.');$comboname.setComboText('');$comboname.setComboValue('');return false;}
|
||||
if(val!=='')
|
||||
{";
|
||||
echo " $otherevent
|
||||
}
|
||||
});";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXGRIDVIEW($gridinit=array(),$gridcolumnproperties=array(),$gridtypes,$contexmenu=null,$functioninit=null,$resulttovariable=null)
|
||||
{
|
||||
$dgname=$gridinit['gridname'];
|
||||
$divtarget=$gridinit['divtarget'];
|
||||
$divpaging=$gridinit['divpaging'];
|
||||
$paginglimit=$gridinit['paginglimit'];
|
||||
$setcolumnhidden=$gridinit['setcolumnhidden'];
|
||||
$footer=$gridinit['footer'];
|
||||
$footerspan=$gridinit['footerspan'];
|
||||
$footeralign=$gridinit['footeralign'];
|
||||
$showloader=$gridinit['showloader'];
|
||||
$resulttovariable=$gridinit['resulttovariable'];
|
||||
$split=$gridinit['split'];
|
||||
$skin=$gridinit['skin'];if(!$skin){$skin="dhx_skyblue";}
|
||||
$columnformat=$gridinit['columnformat'];
|
||||
if(!$footeralign){$footeralign="left";}
|
||||
if(!$paginglimit){$paginglimit=PAGE_LIMIT;}
|
||||
if($contexmenu){$contexmenu="$dgname.enableContextMenu($contexmenu);";}
|
||||
$fieldname="";$headeralign="";$coltypes="";$widths="";$contentalign="";$colsort="";
|
||||
$enabletooltips="";
|
||||
foreach($gridcolumnproperties as $arr=>$arrval)
|
||||
{
|
||||
$fieldname.=$arr.",";
|
||||
$spprop=explode(",",$arrval);
|
||||
$headeralign.="\"text-align:".$spprop[0]."\",";$coltypes.=$spprop[1].",";
|
||||
$widths.=$spprop[2].",";$contentalign.=$spprop[3].",";$colsort.=$spprop[4].",";
|
||||
$enabletooltips.=$spprop[5].",";
|
||||
|
||||
}
|
||||
$fieldname=substr($fieldname,0,strlen($fieldname)-1);
|
||||
$headeralign=substr($headeralign,0,strlen($headeralign)-1);
|
||||
$coltypes=substr($coltypes,0,strlen($coltypes)-1);
|
||||
$widths=substr($widths,0,strlen($widths)-1);
|
||||
$contentalign=substr($contentalign,0,strlen($contentalign)-1);
|
||||
$colsort=substr($colsort,0,strlen($colsort)-1);
|
||||
$enabletooltips=substr($enabletooltips,0,strlen($enabletooltips)-1);
|
||||
//echo $fieldname.' '.$headeralign.' '.$coltypes.' '.$contentalign.' '.$colsort;return false;
|
||||
$rtn="// === Data Grid Akun Header
|
||||
$dgname=new dhtmlXGridObject(\"$divtarget\");
|
||||
$dgname.setSkin(\"$skin\");
|
||||
$dgname.setImagePath(\"".PATH_THEME."/codebase/imgs/\");
|
||||
$dgname.setHeader(\"".$fieldname."\",null,[".$headeralign."]);
|
||||
$dgname.setColTypes(\"".$coltypes."\"); // ro => Read Only, ed => Edit
|
||||
$dgname.setInitWidths(\"".$widths."\");
|
||||
$dgname.setColAlign(\"".$contentalign."\");
|
||||
$dgname.setColSorting(\"".$colsort."\");
|
||||
$dgname.enablePaging(true,".$paginglimit.",5,\"$divpaging\",true,\"recInfoArea\");
|
||||
$dgname.setPagingSkin(\"".$gridtypes."\");".$contexmenu."
|
||||
$dgname.enableTooltips(\"".$enabletooltips."\");";
|
||||
if($setcolumnhidden){$rtn.="$dgname.setColumnsVisibility('".$setcolumnhidden."');";}
|
||||
|
||||
if($columnformat)
|
||||
{
|
||||
foreach($columnformat as $arrf1=>$arrvalf1)
|
||||
{
|
||||
foreach($arrvalf1 as $arrf=>$arrfvalue)
|
||||
{
|
||||
//$rtn.="//".$arrf."<";
|
||||
if($arrfvalue=='numberformat')
|
||||
{
|
||||
$columnnumber=explode(",",$arrvalf1["columnnumber"]);
|
||||
for($i=0;$i<count($columnnumber);$i++)
|
||||
{
|
||||
$rtn.="$dgname.setNumberFormat(\"".$arrvalf1["format"]."\",".$columnnumber[$i].",\".\",\",\");";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//<div id='div$dgnamegrandtotal' style='color:blue'>Total</div>,#cspan,#cspan,#cspan,<div id='divdgtranominal' style='text-align:right;'>{#stat_total}</div>,<div id='divdgtrapotongan' style='text-align:right;'>{#stat_total}</div>,<div id='divdgtratotalnominal' style='text-align:right;'>{#stat_total}</div>
|
||||
if($footer)
|
||||
{
|
||||
if($footerspan)
|
||||
{
|
||||
$footerspan=str_repeat("#cspan,", $footerspan);$footerspan=substr($footerspan, 0, strlen($footerspan)-1);
|
||||
}
|
||||
$rtn.="$dgname.attachFooter(\"".$footer.",".$footerspan."\",[\"text-align:".$footeralign.";\"]);";
|
||||
}
|
||||
$rtn.=" $dgname.init();";
|
||||
if($functioninit){$rtn.="$functioninit;";}
|
||||
if($split){$rtn.="$dgname.splitAt($split);";}
|
||||
if($showloader)
|
||||
{
|
||||
$rtn.="$dgname.attachEvent(\"onXLS\",function(){document.getElementById('loadergrid').style.display='block';});";
|
||||
$rtn.="$dgname.attachEvent(\"onXLE\",function(){document.getElementById('loadergrid').style.display='none';});";
|
||||
}
|
||||
if($resulttovariable){return $rtn;}else{echo $rtn;}
|
||||
}
|
||||
|
||||
public function FN_DHTMLXGRIDVIEWTOFORM($gridname,$formname,$tablename,$idparameterindex,$fieldsarray,$fielddatetime=null,$otherevent=null,$otherbuttonevent=null,$resulttovariable=null,$expcolumnindexclick=null)
|
||||
{
|
||||
$rtn="$gridname.attachEvent(\"onRowSelect\",function(rowid,ind){";
|
||||
if($expcolumnindexclick){$rtn.="if(ind==$expcolumnindexclick){return false;}";}
|
||||
$rtn.="id=$gridname.cells(rowid,$idparameterindex).getValue();";
|
||||
$i=0;$fieldsid="";$getresult="";$fieldfocus="";
|
||||
foreach($fieldsarray as $arr=>$arrvalue)
|
||||
{
|
||||
if($i==1){$fieldfocus=$arr;}
|
||||
if($i>0)
|
||||
{
|
||||
$tfield=$arrvalue;
|
||||
if(!$arrvalue)
|
||||
{
|
||||
$tfield=$arr;
|
||||
$spf=explode("_",$tfield);
|
||||
$tfield=$spf[1];
|
||||
}
|
||||
|
||||
$fieldname.=$tfield.",";
|
||||
//$rtn.=" var ".$fieldname."=spres[".$i."];";
|
||||
$getresult.="$formname.setItemValue('".$arr."',trim(spres[".$i."]));";
|
||||
}
|
||||
else
|
||||
{$getresult.="$formname.setItemValue('".$arr."',id);";}
|
||||
$i+=1;
|
||||
}
|
||||
$fieldname=substr($fieldname,0,strlen($fieldname)-1);
|
||||
if($otherevent){$getresult.=$otherevent;}
|
||||
$rtn.=" var result=ajaxuridhtmlx('".$this->enc("obj_controller")."','obj=".$this->enc("-")."&task=".$this->enc("getinfotable")."&tablename=$tablename&fields=$fieldname&fielddatetime=$fielddatetime&id='+id);";
|
||||
//$rtn.=" alert(result);";
|
||||
$rtn.=" var spres=result.split('|');";
|
||||
$rtn.=$getresult;
|
||||
if($otherbuttonevent)
|
||||
{
|
||||
$rtn.=$otherbuttonevent;
|
||||
}
|
||||
else
|
||||
{
|
||||
$rtn.=" $formname.disableItem(\"btnsave\");";
|
||||
$rtn.=" $formname.enableItem(\"btnupdate\");";
|
||||
$rtn.=" $formname.enableItem(\"btndelete\");";
|
||||
$rtn.=" $formname.setItemFocus(\"$fieldfocus\");";
|
||||
}
|
||||
$rtn.="});";
|
||||
if($resulttovariable){return $rtn;}else{echo $rtn;}
|
||||
//$rtn.=" var customeridentity=spres[1];";
|
||||
// $rtn.=" var customercode=spres[2];";
|
||||
// $rtn.=" var customername=spres[3];";
|
||||
// $rtn.=" var address=spres[4];";
|
||||
// $rtn.=" var region=spres[5];";
|
||||
// $rtn.=" var town=spres[6];";
|
||||
// $rtn.=" var phone=spres[7];";
|
||||
// $rtn.=" var contactperson=spres[8];";
|
||||
// $rtn.=" var contactpersonnumber=spres[9];";
|
||||
// $rtn.=" var notes=spres[10];";
|
||||
|
||||
// $rtn.=" myForm.setItemValue('txtidcustomer',id);";
|
||||
// $rtn.=" myForm.setItemValue('txt_customeridentity',customeridentity);";
|
||||
// $rtn.=" myForm.setItemValue('txt_customercode',customercode);";
|
||||
// $rtn.=" myForm.setItemValue('txt_customername',customername);";
|
||||
// $rtn.=" myForm.setItemValue('txt_address',address);";
|
||||
// $rtn.=" myForm.setItemValue('txt_region',region);";
|
||||
// $rtn.=" myForm.setItemValue('txt_town',town);";
|
||||
// $rtn.=" myForm.setItemValue('txt_phone',phone);";
|
||||
// $rtn.=" myForm.setItemValue('txt_contactperson',contactperson);";
|
||||
// $rtn.=" myForm.setItemValue('txt_contactpersonnumber',contactpersonnumber);";
|
||||
// $rtn.=" myForm.setItemValue('txt_notes',notes);";
|
||||
|
||||
// $rtn.=" myForm.disableItem(\"btnsave\");";
|
||||
// $rtn.=" myForm.enableItem(\"btnupdate\");";
|
||||
// $rtn.=" myForm.enableItem(\"btndelete\");";
|
||||
//myForm.enableItem(\"btncancel\");";
|
||||
// $rtn.=" myForm.setItemFocus(\"txt_customeridentity\");";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function FN_DHTMLXGRIDVIEWINCONTENT($gridinit=array(),$gridcolumnproperties=array(),$gridtypes,$contexmenu=null,$functioninit=null)
|
||||
{
|
||||
$rtn="";
|
||||
$dgname=$gridinit['gridname'];
|
||||
$contenttarget=$gridinit['contenttarget'];
|
||||
$divpaging=$gridinit['divpaging'];
|
||||
$paginglimit=$gridinit['paginglimit'];
|
||||
$setcolumnhidden=$gridinit['setcolumnhidden'];
|
||||
$footer=$gridinit['footer'];
|
||||
if(!$paginglimit){$paginglimit=PAGE_LIMIT;}
|
||||
if($contexmenu){$contexmenu="$dgname.enableContextMenu($contexmenu)";}
|
||||
$fieldname="";$headeralign="";$coltypes="";$widths="";$contentalign="";$colsort="";
|
||||
$enabletooltips="";
|
||||
foreach($gridcolumnproperties as $arr=>$arrval)
|
||||
{
|
||||
$fieldname.=$arr.",";
|
||||
$spprop=explode(",",$arrval);
|
||||
$headeralign.="\"text-align:".$spprop[0]."\",";$coltypes.=$spprop[1].",";
|
||||
$widths.=$spprop[2].",";$contentalign.=$spprop[3].",";$colsort.=$spprop[4].",";
|
||||
$enabletooltips.=$spprop[5].",";
|
||||
|
||||
}
|
||||
$fieldname=substr($fieldname,0,strlen($fieldname)-1);
|
||||
$headeralign=substr($headeralign,0,strlen($headeralign)-1);
|
||||
$coltypes=substr($coltypes,0,strlen($coltypes)-1);
|
||||
$widths=substr($widths,0,strlen($widths)-1);
|
||||
$contentalign=substr($contentalign,0,strlen($contentalign)-1);
|
||||
$colsort=substr($colsort,0,strlen($colsort)-1);
|
||||
$enabletooltips=substr($enabletooltips,0,strlen($enabletooltips)-1);
|
||||
//echo $fieldname.' '.$headeralign.' '.$coltypes.' '.$contentalign.' '.$colsort;return false;
|
||||
$rtn="// === Data Grid
|
||||
$dgname=new dhtmlXGridObject($contenttarget);
|
||||
$dgname.setSkin(\"dhx_skyblue\");
|
||||
$dgname.setImagePath(\"".PATH_THEME."/codebase/imgs/\");
|
||||
$dgname.setHeader(\"".$fieldname."\",null,[".$headeralign."]);
|
||||
$dgname.setColTypes(\"".$coltypes."\"); // ro => Read Only, ed => Edit
|
||||
$dgname.setInitWidths(\"".$widths."\");
|
||||
$dgname.setColAlign(\"".$contentalign."\");
|
||||
$dgname.setColSorting(\"".$colsort."\");
|
||||
$dgname.enablePaging(true,".$paginglimit.",5,\"$divpaging\",true,\"recInfoArea\");
|
||||
$dgname.setPagingSkin(\"".$gridtypes."\");".$contexmenu."
|
||||
$dgname.enableTooltips(\"".$enabletooltips."\");";
|
||||
if($setcolumnhidden){$rtn.="$dgname.setColumnsVisibility('".$setcolumnhidden."');";}
|
||||
|
||||
//<div id='div$dgnamegrandtotal' style='color:blue'>Total</div>,#cspan,#cspan,#cspan,<div id='divdgtranominal' style='text-align:right;'>{#stat_total}</div>,<div id='divdgtrapotongan' style='text-align:right;'>{#stat_total}</div>,<div id='divdgtratotalnominal' style='text-align:right;'>{#stat_total}</div>
|
||||
if($footer){$rtn.="$dgname.attachFooter(\"".$footer."\",[\"text-align:right;\"]);";}
|
||||
$rtn.=" $dgname.init();";
|
||||
if($functioninit){$rtn.="$functioninit;";}
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function FN_DHTMLXWINDOWS($windowsname,$windowproperties=array(),$w,$h,$x,$y,$attachtodiv=null,$myform=null,$formdata=null,$myformjquery=null)
|
||||
{
|
||||
//echo json_encode($formdata);return false;
|
||||
$windowtitle="";$skin="dhx_web";$denyresize="";$modalwin="";$closedby="";$eventwhenclosed="";
|
||||
$position="";$skinform="dhx_skyblue";
|
||||
foreach($windowproperties as $arr=>$arrval)
|
||||
{
|
||||
if($arr=='title'){$windowtitle=$arrval;}
|
||||
if($arr=='skin'){$skin=$arrval;}
|
||||
if($arr=='skinform'){$skinform=$arrval;}
|
||||
if($arr=='denyresize'){$denyresize=$arrval;}
|
||||
if($arr=='modalwin'){$modalwin=$arrval;}
|
||||
if($arr=='closedby'){$closedby=$arrval;}
|
||||
if($arr=='eventwhenclosed'){$eventwhenclosed=$arrval;}
|
||||
if($arr=='position'){$position=trim($arrval);}
|
||||
}
|
||||
echo "var dhxwin=new dhtmlXWindows();";
|
||||
echo "dhxwin.setSkin('$skin');";
|
||||
|
||||
if($attachtodiv){echo "dhxwin.attachViewportTo('$attachtodiv');";}
|
||||
echo "$windowsname=dhxwin.createWindow(\"$windowsname\",$x,$y,$w,$h);";
|
||||
echo "dhxwin.window('$windowsname').progressOn();";
|
||||
echo "$windowsname.setText('$windowtitle');";
|
||||
if($denyresize){echo "dhxwin.window('$windowsname').denyResize();";}
|
||||
if($modalwin){echo "dhxwin.window('$windowsname').setModal($modalwin);";}
|
||||
if(!$closedby){echo "dhxwin.window('$windowsname').button(\"close\").disable();";}
|
||||
echo "dhxwin.window('$windowsname').bringToTop();";
|
||||
if($position){echo "dhxwin.window('$windowsname').".$position."();";}
|
||||
if($myform)
|
||||
{
|
||||
$formdata=json_encode($formdata);
|
||||
echo "$myform=$windowsname.attachForm($formdata, true);";
|
||||
echo "$myform.setFocusOnFirstActive();";
|
||||
echo "$myform.setSkin('$skinform');";
|
||||
echo "$myform.attachEvent(\"onKeyDown\",function(inp,ev,id,value){";
|
||||
if($closedby)
|
||||
{
|
||||
echo "if(ev.keyCode==27){dhxwin.unload();}";
|
||||
}
|
||||
echo "});";
|
||||
|
||||
if($myformjquery){echo $myformjquery;}
|
||||
}
|
||||
echo "dhxwin.window('$windowsname').progressOff();";
|
||||
if($eventwhenclosed){echo "dhxwin.attachEvent('onClose',function(win){".$eventwhenclosed.";return true;})";}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function FN_DHTMLXWINDOWSHOWPROGESS($event)
|
||||
{
|
||||
$rtn="var dhxwin=new dhtmlXWindows();";
|
||||
$rtn.="dhxwin.setSkin('dhx_terrace');";
|
||||
|
||||
$rtn.="winprogress=dhxwin.createWindow(\"winprogress\",0,0,190,40);";
|
||||
$rtn.="winprogress.setText('Progress');";
|
||||
$rtn.="dhxwin.window('winprogress').hideHeader();";
|
||||
$rtn.="dhxwin.window('winprogress').denyResize();";
|
||||
$rtn.="dhxwin.window('winprogress').setModal(true);";
|
||||
$rtn.="dhxwin.window('winprogress').button(\"close\").disable();";
|
||||
$rtn.="dhxwin.window('winprogress').bringToTop();";
|
||||
$rtn.="dhxwin.window('winprogress').center();";
|
||||
$winprogressvalue="<table border=\"0\" style=\"font-family:tahoma;font-size:9pt;margin-top:-5px\" width=\"100%\">";
|
||||
$winprogressvalue.=" <tr>";
|
||||
$winprogressvalue.=" <td align=\"center\">Please Wait..<td>";
|
||||
$winprogressvalue.=" </tr>";
|
||||
$winprogressvalue.=" <tr>";
|
||||
$winprogressvalue.=" <td align=\"center\">".$this->CREATE_IMAGE("loaderring.gif","32","32")."<td>";
|
||||
$winprogressvalue.=" </tr>";
|
||||
$winprogressvalue.="</table>";
|
||||
$rtn.="winprogress.attachHTMLString('$winprogressvalue');";
|
||||
$rtn.=$event;
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function FN_DHTMLXWINDOWSHIDEPROGRESS()
|
||||
{
|
||||
return "dhxwin.unload();";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXFORMCLEAR($myformname,$ArrayControls=array(),$setFocusControl=null)
|
||||
{
|
||||
$statement="";
|
||||
foreach($ArrayControls as $arr=>$arrval)
|
||||
{
|
||||
$statement="$myformname.setItemValue('$arr','$arrval');";
|
||||
//if(substr($arr,0,3)!='cbo'){$statement="$myformname.setItemValue('$arr','$arrval');";}
|
||||
if(substr($arr,0,3)=='chk'){$statement="$myformname.checkItem('$arr',$arrval);";}
|
||||
if(substr($arr,0,3)=='cbo'){$statement.="$myformname.getCombo('$arr').setComboValue('');$myformname.getCombo('$arr').setComboText('$arrval');";}
|
||||
$dhtmlxformclear.=$statement;
|
||||
}
|
||||
$rtn="$dhtmlxformclear";
|
||||
if($setFocusControl){$rtn.="$myformname.setItemFocus('$setFocusControl');";}
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function FN_DHTMLXFORM($myformname,$elementarget,$formdata,$notsetFocusOnFirstActive=null)
|
||||
{
|
||||
$formdata=json_encode($formdata);
|
||||
|
||||
echo "$myformname=new dhtmlXForm(\"".$elementarget."\", ".$formdata.");";
|
||||
echo "$myformname.enableLiveValidation(true);";
|
||||
if(is_null($notsetFocusOnFirstActive)){echo "$myformname.setFocusOnFirstActive();";}
|
||||
//echo "$myformname.setFocusOnFirstActive();";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXFORMDOCUMENT($myformname,$documentbody,$formdata)
|
||||
{
|
||||
$formdata=json_encode($formdata);
|
||||
|
||||
echo "$myformname=new dhtmlXForm(".$documentbody.", ".$formdata.");";
|
||||
echo "$myformname.enableLiveValidation(true);";
|
||||
echo "$myformname.setFocusOnFirstActive();";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXFORMEVENT($myformname,$arrevent,$resulttovariable=null)
|
||||
{
|
||||
$rtn="";
|
||||
foreach($arrevent as $arr=>$arrval1)
|
||||
{
|
||||
$eventname="";$eventparam="";$withcase="";$arrsyntax=array();$statement="";
|
||||
//echo json_encode($arrval1);return false;
|
||||
foreach($arrval1 as $arrt1=>$arrvalt1)
|
||||
{
|
||||
if($arrt1=='eventname'){$eventname=$arrvalt1;}
|
||||
if($arrt1=='eventparam'){$eventparam=$arrvalt1;}
|
||||
if($arrt1=='switch'){$withcase=$arrvalt1;$arrsyntax=$arrvalt1;}
|
||||
if($arrt1=='statement'){$statement=$arrvalt1;}
|
||||
}
|
||||
$rtn="$myformname.attachEvent('$eventname',function($eventparam){";
|
||||
if($withcase)
|
||||
{
|
||||
$rtn.="switch(id)
|
||||
{";
|
||||
foreach($arrsyntax as $arrcase=>$arrstatement)
|
||||
{
|
||||
$rtn.="case '$arrcase':$arrstatement;break;";
|
||||
}
|
||||
$rtn.="}";
|
||||
}
|
||||
else{$rtn.=$statement;}
|
||||
$rtn.="});";
|
||||
if($resulttovariable){return $rtn;}else{echo $rtn;}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function FN_DHTMLXCREATECONTEXTMENUGRID($gridname,$contextmenuname,$arrmenucontext)
|
||||
{
|
||||
$menuproperties="";
|
||||
echo "var $contextmenuname=new dhtmlXMenuObject();
|
||||
$contextmenuname.renderAsContextMenu();
|
||||
$contextmenuname.setIconsPath(\"".PATH_THEME."/icons/\");
|
||||
|
||||
$contextmenuname.attachEvent(\"onClick\",function(id){
|
||||
switch(id)
|
||||
{";
|
||||
foreach($arrmenucontext as $arr=>$arrvalue)
|
||||
{
|
||||
$event=$arrvalue["event"];
|
||||
$gifname=$arrvalue["gifname"];
|
||||
$menutext=$arrvalue["menutext"];
|
||||
$menuproperties.=$arr."|".$gifname."|".$menutext.",";
|
||||
echo "case '$arr':";
|
||||
if($arr=='contextmenu_deleted')
|
||||
{
|
||||
$contextconfirm="Data <b>'+getVal+'</b> ingin <font color=\"red\">dihapus</font>?";
|
||||
$contextevent="$gridname.deleteRow(data[0]);$event";
|
||||
|
||||
//if(!$event)
|
||||
//{
|
||||
// echo "var data=$gridname.contextID.split(\"_\");
|
||||
// var getValuserText=$gridname.cellById(data[0],1).getValue();
|
||||
// dhtmlx.confirm({
|
||||
// title:'Confirm',
|
||||
// type:'confirm',
|
||||
// text:'',
|
||||
// callback:function(result){
|
||||
// if(result){
|
||||
// $gridname.deleteRow(data[0]);$event;
|
||||
// }
|
||||
// }
|
||||
// });";
|
||||
//}
|
||||
//else
|
||||
//{echo $event;}
|
||||
}
|
||||
if($arr=='contextmenu_print')
|
||||
{
|
||||
$contextconfirm="Data <b>'+getVal+'</b> ingin <font color=\"blue\">di Print</font>?";
|
||||
$contextevent=$event;
|
||||
}
|
||||
echo "var data=$gridname.contextID.split(\"_\");
|
||||
var getVal=$gridname.cellById(data[0],1).getValue();
|
||||
dhtmlx.confirm({
|
||||
title:'Confirm',
|
||||
type:'confirm',
|
||||
text:'$contextconfirm',
|
||||
callback:function(result){
|
||||
if(result){
|
||||
$contextevent;
|
||||
}
|
||||
}
|
||||
});";
|
||||
echo "break;";
|
||||
$menuproperties=substr($menuproperties,0,strlen($menuproperties)-1);
|
||||
}
|
||||
echo " }";
|
||||
echo " });
|
||||
url=fn_dhtmlxloadobject('".$this->enc("obj_controller")."','obj=".$this->enc("-")."&task=".$this->enc("contxtmenustruc")."&mnuprop=$menuproperties');
|
||||
//alert(url);
|
||||
$contextmenuname.loadStruct(url);";
|
||||
}
|
||||
|
||||
public function FN_DHTMLXCONTEXTMENUSTRUCTURE()
|
||||
{
|
||||
$mnuprop=$_REQUEST['mnuprop'];
|
||||
$spmnuprop=explode(",",$mnuprop);
|
||||
|
||||
header("Content-type: text/xml");
|
||||
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
|
||||
echo("<menu id=\"0\">");
|
||||
for($i=0;$i<count($spmnuprop);$i++)
|
||||
{
|
||||
$sp=explode("|",$spmnuprop[$i]);
|
||||
$mnuid=$sp[0];$mnugif=$sp[1];$mnutext=$sp[2];
|
||||
echo("<item text=\"$mnutext\" img=\"$mnugif\" id=\"$mnuid\" />");
|
||||
}
|
||||
|
||||
echo("</menu>");
|
||||
}
|
||||
|
||||
public function FN_DHTMLXADDCOMBO($DBNAME=null)
|
||||
{
|
||||
if(!$DBNAME){$DBNAME=DB_APORTIL;}
|
||||
// === param request tablename|col1,col2
|
||||
$tableobj=$_REQUEST['tableobj'];
|
||||
//echo $tableobj;
|
||||
$sp=explode("|",$tableobj);
|
||||
|
||||
$table=$sp[0];
|
||||
//echo $table;
|
||||
$spcol=explode(",",$sp[1]);
|
||||
$col1=$spcol[0];$col2=$spcol[1];
|
||||
|
||||
$swhere="";
|
||||
if(isset($_REQUEST['exp']))//&&$_SESSION['nik']!=='9999'
|
||||
{
|
||||
//$spexp=explode("|",$_REQUEST['exp']);
|
||||
//$exp="and ".$spexp[0]."<>'".$spexp[1]."'";
|
||||
$spexp=explode(",",$_REQUEST['exp']);
|
||||
if(count($spexp)>0)
|
||||
{
|
||||
for($i=0;$i<count($spexp);$i++)
|
||||
{
|
||||
$spcriteria=explode("|",$spexp[$i]);
|
||||
$swhere.="and ".$spcriteria[0]."<>'".$spcriteria[1]."' ";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$spcriteria=explode("|",$spexp[$i]);
|
||||
$swhere="and ".$spcriteria[0]."<>'".$spcriteria[1]."'";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(isset($_REQUEST['and']))//&&$_SESSION['nik']!=='9999'
|
||||
{
|
||||
//$spexp=explode("|",$_REQUEST['exp']);
|
||||
//$exp="and ".$spexp[0]."<>'".$spexp[1]."'";
|
||||
$spexp=explode(",",$_REQUEST['and']);
|
||||
if(count($spexp)>0)
|
||||
{
|
||||
for($i=0;$i<count($spexp);$i++)
|
||||
{
|
||||
$spcriteria=explode("|",$spexp[$i]);
|
||||
$swhere.="and ".$spcriteria[0]."='".$spcriteria[1]."' ";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$spcriteria=explode("|",$spexp[$i]);
|
||||
$swhere="and ".$spcriteria[0]."='".$spcriteria[1]."'";
|
||||
}
|
||||
|
||||
}
|
||||
if(isset($_REQUEST['in']))//&&$_SESSION['nik']!=='9999'
|
||||
{
|
||||
//$spexp=explode("|",$_REQUEST['exp']);
|
||||
//$exp="and ".$spexp[0]."<>'".$spexp[1]."'";
|
||||
$spexp=explode("|",$_REQUEST['in']);
|
||||
$swhere="and ".$spexp[0]." in (".$spexp[1].")";
|
||||
|
||||
}
|
||||
|
||||
$captionnulltext="";
|
||||
if(isset($_REQUEST['withallcaption'])){$captionnulltext="ALL";}
|
||||
header("Content-type: text/xml");
|
||||
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
|
||||
echo("<complete>");
|
||||
echo("<option value=\"\">$captionnulltext</option>");
|
||||
$qry="select $col1,$col2 from ".$DBNAME.".$table where isdeleted=0 $swhere order by id asc";
|
||||
//echo $qry;
|
||||
if($this->fn_row_isexists($qry))
|
||||
{
|
||||
$rs=$this->selectquery($qry);
|
||||
if($rs)
|
||||
{
|
||||
while($rw=$this->data_row_array($rs))
|
||||
{
|
||||
//echo("<option value=\"".$rw->img."\" img_src=\"".$rw->imgname."\">".$rw->imgname."</option>");
|
||||
echo("<option value=\"".str_replace("&","&",$rw[0])."\">".str_replace("&","&",$rw[1])."</option>");
|
||||
}
|
||||
}
|
||||
$this->clearrecordset($rs);
|
||||
}
|
||||
echo("</complete>");
|
||||
}
|
||||
|
||||
public function FN_DHTMLXLOADOBJECT($withvariable=null,$objroot,$objname,$task,$params=null)
|
||||
{
|
||||
$singlequote="'";
|
||||
if($params){$params="&$params";if(substr($params,strlen($params)-1,1)!="'"){$singlequote="";};}
|
||||
$url="fn_dhtmlxloadobject('".$this->enc($objroot)."','obj=".$this->enc($objname)."&task=".$task."".$params."$singlequote);";
|
||||
if($withvariable){$url=$withvariable."=".$url;}
|
||||
return $url;
|
||||
}
|
||||
|
||||
public function FN_DHTMLXLOADOBJECTURL($option,$task){return "?ajax=1&sec=1&option=".$option."&".$task;}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
if (preg_match("/libgendix.php/i", $_SERVER['PHP_SELF'])){header("location: index.php");die;}
|
||||
class MY_GENDIX extends MY_DHTMLX
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
@ -1,215 +0,0 @@
|
||||
<?php
|
||||
class LIBINTERCONN
|
||||
{
|
||||
var $inconn;var $dbcon;var $dbconORC;
|
||||
public function __construct($CONNAME,$dbtype="mysql")
|
||||
{
|
||||
$this->inconn=array("HC"=>array("IP"=>"172.17.12.17","USER"=>"root","PASS"=>"p@ssw0rd2021","DB"=>"hrdwh_tcel"),
|
||||
"MS"=>array("IP"=>"172.17.12.77","USER"=>"teldigthon","PASS"=>"teezdumk","DB"=>"redirector"),
|
||||
"ANC"=>array("IP"=>"172.20.25.26/bonteng","USER"=>"crs","PASS"=>"tcel#crs","DB"=>"crs")
|
||||
);
|
||||
if($CONNAME)
|
||||
{
|
||||
if($dbtype=='mysql')
|
||||
{
|
||||
$this->dbcon=mysql_connect($this->inconn[$CONNAME]["IP"],$this->inconn[$CONNAME]["USER"],$this->inconn[$CONNAME]["PASS"],$this->inconn[$CONNAME]["DB"]);
|
||||
mysql_select_db($this->inconn[$CONNAME]["DB"],$this->dbcon);
|
||||
}
|
||||
if($dbtype=='oci')
|
||||
{
|
||||
//$this->dbcon=oci_connect('crs', 'tcel#crs', '172.20.25.26/bonteng');
|
||||
$this->dbconORC=oci_connect($this->inconn[$CONNAME]["USER"], $this->inconn[$CONNAME]["PASS"], $this->inconn[$CONNAME]["IP"]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function selectquery($query,$mysql_error=null)
|
||||
{
|
||||
$rsqry=@mysql_query($query,$this->dbcon);
|
||||
if(!$mysql_error){$mysql_error=mysql_error();}
|
||||
if(!$rsqry){echo $mysql_error;return false;}
|
||||
return $rsqry;
|
||||
}
|
||||
|
||||
public function selectqueryORC($query,$orc_error=null)
|
||||
{
|
||||
//echo $this->dbconORC." db";return false;
|
||||
$rsqry=oci_parse($this->dbconORC,$query);
|
||||
oci_execute($rsqry);
|
||||
return $rsqry;
|
||||
}
|
||||
|
||||
public function fn_row_isexists($query)
|
||||
{
|
||||
$rtn=false;
|
||||
$rschk=$this->selectquery($query,$this->dbcon);
|
||||
if($rschk)
|
||||
{
|
||||
if(mysql_num_rows($rschk)>0){$rtn=true;}
|
||||
}
|
||||
$this->clearrecordset($rschk);
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function fn_row_isexistsORC($query)
|
||||
{
|
||||
$rtn=false;
|
||||
$rschk=$this->selectqueryORC($query,$this->dbconORC);
|
||||
if($rschk)
|
||||
{
|
||||
//if(mysql_num_rows($rschk)>0){$rtn=true;}
|
||||
if(oci_num_rows($rschk)>0){$rtn=true;}
|
||||
}
|
||||
$this->clearrecordsetORC($rschk);
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function data_row_object($recordset)
|
||||
{
|
||||
return mysql_fetch_object($recordset);
|
||||
}
|
||||
|
||||
public function data_row_objectORC($recordset)
|
||||
{
|
||||
return oci_fetch_object($recordset);
|
||||
}
|
||||
|
||||
public function data_row_array($recordset)
|
||||
{
|
||||
return mysql_fetch_array($recordset);
|
||||
}
|
||||
|
||||
public function data_row_arrayORC($recordset)
|
||||
{
|
||||
return oci_fetch_array($recordset, OCI_BOTH+OCI_RETURN_NULLS);
|
||||
}
|
||||
|
||||
public function field_length($recordset)
|
||||
{
|
||||
return mysql_num_fields($recordset);
|
||||
}
|
||||
|
||||
public function field_lengthORC($recordset)
|
||||
{
|
||||
return oci_num_fields($recordset);
|
||||
}
|
||||
|
||||
public function getErrorQuery()
|
||||
{
|
||||
return $this->errquery;
|
||||
}
|
||||
|
||||
public function executequery($query)
|
||||
{
|
||||
if(mysql_query($query,$this->dbcon))
|
||||
{return true;}
|
||||
else
|
||||
{$this->errquery=mysql_error(); die(mysql_error());return false;}
|
||||
}
|
||||
|
||||
public function executequeryORC($query)
|
||||
{
|
||||
$rsqry=oci_parse($this->dbconORC,$query);
|
||||
$res=oci_execute($rsqry);
|
||||
if($res)
|
||||
{oci_commit($this->dbconORC);return true;}
|
||||
else
|
||||
{$this->errquery=oci_error(); die(oci_error());return false;}
|
||||
}
|
||||
|
||||
public function REC_ROWS_COUNT($recordset){return mysql_num_rows($recordset);}
|
||||
|
||||
public function REC_ROWS_COUNTORC($recordset){return oci_num_rows($recordset);}
|
||||
|
||||
public function fn_get_fieldvalue($fieldname,$query)
|
||||
{
|
||||
$rtn='';
|
||||
$rsgetvalue=mysql_query($query,$this->dbcon) or die(mysql_error());
|
||||
if($rsgetvalue)
|
||||
{
|
||||
if(mysql_num_rows($rsgetvalue)>0)
|
||||
{
|
||||
$rw=mysql_fetch_object($rsgetvalue);
|
||||
$rtn=$rw->$fieldname;
|
||||
}
|
||||
}
|
||||
$this->clearrecordset($rsgetvalue);
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function fn_get_fieldvalueORC($fieldname,$query)
|
||||
{
|
||||
$rtn='';
|
||||
$rsgetvalue=$this->selectqueryORC($query,$this->dbconORC);
|
||||
if($rsgetvalue)
|
||||
{
|
||||
//if(mysql_num_rows($rschk)>0){$rtn=true;}
|
||||
if(oci_num_rows($rsgetvalue)>0)
|
||||
{
|
||||
$rw=oci_fetch_object($rsgetvalue);
|
||||
$rtn=$rw->$fieldname;
|
||||
}
|
||||
}
|
||||
$this->clearrecordsetORC($rsgetvalue);
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function fn_get_fieldsvalues($fieldsname,$query)
|
||||
{
|
||||
$rtn='';
|
||||
$spfields=explode(",",trim($fieldsname));
|
||||
$rsgetvalue=$this->selectquery($query,$this->dbcon);
|
||||
if($rsgetvalue)
|
||||
{
|
||||
if(mysql_num_rows($rsgetvalue)>0)
|
||||
{
|
||||
$rw=mysql_fetch_object($rsgetvalue);
|
||||
for($i=0;$i<=count($spfields)-1;$i++)
|
||||
{
|
||||
$rtn.=$rw->$spfields[$i]."|";
|
||||
}
|
||||
$rtn=substr($rtn,0,strlen($rtn)-1);
|
||||
}
|
||||
}
|
||||
$this->clearrecordset($rsgetvalue);
|
||||
$rtn=explode("|",$rtn);
|
||||
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function fn_get_fieldsvaluesORC($fieldsname,$query)
|
||||
{
|
||||
$rtn='';
|
||||
$spfields=explode(",",trim($fieldsname));
|
||||
$rsgetvalue=$this->selectquery($query,$this->dbconORC);
|
||||
if($rsgetvalue)
|
||||
{
|
||||
if(oci_num_rows($rsgetvalue)>0)
|
||||
{
|
||||
$rw=oci_fetch_object($rsgetvalue);
|
||||
for($i=0;$i<=count($spfields)-1;$i++)
|
||||
{
|
||||
$rtn.=$rw->$spfields[$i]."|";
|
||||
}
|
||||
$rtn=substr($rtn,0,strlen($rtn)-1);
|
||||
}
|
||||
}
|
||||
$this->clearrecordsetORC($rsgetvalue);
|
||||
$rtn=explode("|",$rtn);
|
||||
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function clearrecordset($recordset)
|
||||
{
|
||||
if($recordset){mysql_free_result($recordset);}
|
||||
}
|
||||
|
||||
public function clearrecordsetORC($recordset)
|
||||
{
|
||||
if($recordset){oci_free_statement($recordset);}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
class LIBMSG
|
||||
{
|
||||
var $style;
|
||||
public function SHOWMSG($MSGTYPE,$STYLE=null,$HEADERMSG,$MSG)
|
||||
{
|
||||
$this->style="width:40%;left:28%;top:0px;position:fixed;";
|
||||
if($STYLE){$this->style=$STYLE;}
|
||||
return "<div class=\"$MSGTYPE\" style=\"".$this->style."\">
|
||||
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
|
||||
<strong>$HEADERMSG</strong> $MSG
|
||||
</div>";
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,107 +0,0 @@
|
||||
// JScript source code
|
||||
var DayName=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
|
||||
|
||||
|
||||
|
||||
var oneMinute=1000*60;
|
||||
|
||||
var intervalObject=new Object();
|
||||
intervalObject["yyyy"]={units:1000*60*60*24*365,measure:"year"};
|
||||
intervalObject["m"]={units:1000*60*60*24*30,measure:"month"};
|
||||
intervalObject["d"]={units:1000*60*60*24,measure:"day"};
|
||||
intervalObject["Q"]={units:intervalObject["m"].units*3,measure:"quarter"};
|
||||
intervalObject["H"]={units:oneMinute*60,measure:"hour"};
|
||||
intervalObject["N"]={units:oneMinute,measure:"minute"};
|
||||
intervalObject["S"]={units:1000,measure:"second"};
|
||||
|
||||
|
||||
function DateDiff(dateAddObj){
|
||||
this.interval=dateAddObj.interval;
|
||||
this.date1=dateAddObj.date1;
|
||||
this.date2=dateAddObj.date2;
|
||||
this.calculate=calculate;
|
||||
this.calculate();
|
||||
}
|
||||
|
||||
Date.prototype.DateDiff=DateDiff;
|
||||
|
||||
|
||||
|
||||
|
||||
function calculate(){
|
||||
var paramDate1=new String(this.date1);
|
||||
splitDate1=paramDate1.split("-");
|
||||
paramDateYear1=splitDate1[0];
|
||||
paramDateMonth1=splitDate1[1]-1;
|
||||
paramDateDay1=splitDate1[2];
|
||||
if(paramDateMonth1>12){
|
||||
alert("Invalid Month!");
|
||||
return false;
|
||||
}
|
||||
if(paramDateDay1>31){
|
||||
alert("Invalid Day!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var paramDate2=new String(this.date2);
|
||||
splitDate2=paramDate2.split("-");
|
||||
paramDateYear2=splitDate2[0];
|
||||
paramDateMonth2=splitDate2[1]-1;
|
||||
paramDateDay2=splitDate2[2];
|
||||
if(paramDateMonth2>12){
|
||||
alert("Invalid Month!");
|
||||
return false;
|
||||
}
|
||||
if(paramDateDay2>31){
|
||||
alert("Invalid Day!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var paramDate1Object=new Date(paramDateYear1,paramDateMonth1,paramDateDay1);
|
||||
paramDate1Object.setHours(0);
|
||||
paramDate1Object.setMinutes(0);
|
||||
paramDate1Object.setSeconds(0);
|
||||
//paramDate1Object.getTimezoneOffset() * oneMinute;
|
||||
var paramDate1ObjectTime=paramDate1Object.getTime();
|
||||
|
||||
|
||||
var paramDate2Object=new Date(paramDateYear2,paramDateMonth2,paramDateDay2);
|
||||
paramDate2Object.setHours(0);
|
||||
paramDate2Object.setMinutes(0);
|
||||
paramDate2Object.setSeconds(0);
|
||||
var paramDate2ObjectTime=paramDate2Object.getTime();
|
||||
|
||||
if(paramDate2Object>paramDate1Object){
|
||||
DSTAdjust=(paramDate2Object.getTimezoneOffset() - paramDate1Object.getTimezoneOffset()) * oneMinute;
|
||||
|
||||
}
|
||||
else{
|
||||
DSTAdjust=(paramDate1Object.getTimezoneOffset() - paramDate2Object.getTimezoneOffset()) * oneMinute;
|
||||
}
|
||||
|
||||
if(typeof intervalObject[this.interval]!="undefined"){
|
||||
if(typeof intervalObject[this.interval].units=="undefined"){
|
||||
alert("Interval is invalid!");
|
||||
return false;
|
||||
}
|
||||
|
||||
var diff=Math.abs(paramDate2ObjectTime-paramDate1ObjectTime) - DSTAdjust;
|
||||
var timeDiff=Math.floor(diff/intervalObject[this.interval].units);
|
||||
if(timeDiff>1){
|
||||
var rname=intervalObject[this.interval].measure + "s";
|
||||
}
|
||||
else{
|
||||
var rname=intervalObject[this.interval].measure;
|
||||
}
|
||||
|
||||
this.difference=parseInt(timeDiff);
|
||||
}
|
||||
else{
|
||||
this.difference="Wrong format of interval!";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,216 +0,0 @@
|
||||
/* Main Flora Style Sheet for jQuery UI ui-datepicker */
|
||||
#ui-datepicker-div, .ui-datepicker-inline {
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: #E0F4D7;
|
||||
width: 185px;
|
||||
}
|
||||
#ui-datepicker-div {
|
||||
display: none;
|
||||
border: 1px solid #FF9900;
|
||||
z-index: 10;
|
||||
}
|
||||
.ui-datepicker-inline {
|
||||
float: left;
|
||||
display: block;
|
||||
border: 0;
|
||||
}
|
||||
.ui-datepicker-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ui-datepicker-dialog {
|
||||
padding: 5px !important;
|
||||
border: 4px ridge #83C948 !important;
|
||||
}
|
||||
button.ui-datepicker-trigger {
|
||||
width: 25px;
|
||||
}
|
||||
img.ui-datepicker-trigger {
|
||||
margin: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.ui-datepicker-prompt {
|
||||
float: left;
|
||||
padding: 2px;
|
||||
background: #E0F4D7;
|
||||
color: #000;
|
||||
}
|
||||
*html .ui-datepicker-prompt {
|
||||
width: 185px;
|
||||
}
|
||||
.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker {
|
||||
clear: both;
|
||||
float: left;
|
||||
width: 100%;
|
||||
color: #FFF;
|
||||
}
|
||||
.ui-datepicker-control {
|
||||
background: #FF9900;
|
||||
padding: 2px 0px;
|
||||
}
|
||||
.ui-datepicker-links {
|
||||
background: #E0F4D7;
|
||||
padding: 2px 0px;
|
||||
}
|
||||
.ui-datepicker-control, .ui-datepicker-links {
|
||||
font-weight: bold;
|
||||
font-size: 80%;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.ui-datepicker-links label {
|
||||
padding: 2px 5px;
|
||||
color: #888;
|
||||
}
|
||||
.ui-datepicker-clear, .ui-datepicker-prev {
|
||||
float: left;
|
||||
width: 34%;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-clear, .ui-datepicker-rtl .ui-datepicker-prev {
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.ui-datepicker-current {
|
||||
float: left;
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
}
|
||||
.ui-datepicker-close, .ui-datepicker-next {
|
||||
float: right;
|
||||
width: 34%;
|
||||
text-align: right;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-close, .ui-datepicker-rtl .ui-datepicker-next {
|
||||
float: left;
|
||||
text-align: left;
|
||||
}
|
||||
.ui-datepicker-header {
|
||||
padding: 1px 0 3px;
|
||||
background: #83C948;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
height: 1.3em;
|
||||
}
|
||||
.ui-datepicker-header select {
|
||||
background: #83C948;
|
||||
color: #000;
|
||||
border: 0px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ui-datepicker {
|
||||
background: #CCC;
|
||||
text-align: center;
|
||||
font-size: 100%;
|
||||
}
|
||||
.ui-datepicker a {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
.ui-datepicker-title-row {
|
||||
background: #B1DB87;
|
||||
color: #000;
|
||||
}
|
||||
.ui-datepicker-title-row .ui-datepicker-week-end-cell {
|
||||
background: #B1DB87;
|
||||
}
|
||||
.ui-datepicker-days-row {
|
||||
background: #FFF;
|
||||
color: #666;
|
||||
}
|
||||
.ui-datepicker-week-col {
|
||||
background: #B1DB87;
|
||||
color: #000;
|
||||
}
|
||||
.ui-datepicker-days-cell {
|
||||
color: #000;
|
||||
border: 1px solid #DDD;
|
||||
}
|
||||
.ui-datepicker-days-cell a {
|
||||
display: block;
|
||||
}
|
||||
.ui-datepicker-week-end-cell {
|
||||
background: #E0F4D7;
|
||||
}
|
||||
.ui-datepicker-unselectable {
|
||||
color: #888;
|
||||
}
|
||||
.ui-datepicker-week-over, .ui-datepicker-week-over .ui-datepicker-week-end-cell {
|
||||
background: #B1DB87 !important;
|
||||
}
|
||||
.ui-datepicker-days-cell-over, .ui-datepicker-days-cell-over.ui-datepicker-week-end-cell {
|
||||
background: #FFF !important;
|
||||
border: 1px solid #777;
|
||||
}
|
||||
* html .ui-datepicker-title-row .ui-datepicker-week-end-cell {
|
||||
background: #B1DB87 !important;
|
||||
}
|
||||
* html .ui-datepicker-week-end-cell {
|
||||
background: #E0F4D7 !important;
|
||||
border: 1px solid #DDD !important;
|
||||
}
|
||||
* html .ui-datepicker-days-cell-over {
|
||||
background: #FFF !important;
|
||||
border: 1px solid #777 !important;
|
||||
}
|
||||
* html .ui-datepicker-current-day {
|
||||
background: #83C948 !important;
|
||||
}
|
||||
.ui-datepicker-today {
|
||||
background: #B1DB87 !important;
|
||||
}
|
||||
.ui-datepicker-current-day {
|
||||
background: #83C948 !important;
|
||||
}
|
||||
.ui-datepicker-status {
|
||||
background: #E0F4D7;
|
||||
width: 100%;
|
||||
font-size: 80%;
|
||||
text-align: center;
|
||||
}
|
||||
#ui-datepicker-div a, .ui-datepicker-inline a {
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: none;
|
||||
color: #000;
|
||||
}
|
||||
.ui-datepicker-inline .ui-datepicker-links a {
|
||||
padding: 0 5px !important;
|
||||
}
|
||||
.ui-datepicker-control a, .ui-datepicker-links a {
|
||||
padding: 2px 5px !important;
|
||||
color: #000 !important;
|
||||
}
|
||||
.ui-datepicker-title-row a {
|
||||
color: #000 !important;
|
||||
}
|
||||
.ui-datepicker-control a:hover {
|
||||
background: #FDD !important;
|
||||
color: #333 !important;
|
||||
}
|
||||
.ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover {
|
||||
background: #FFF !important;
|
||||
color: #333 !important;
|
||||
}
|
||||
.ui-datepicker-multi .ui-datepicker {
|
||||
border: 1px solid #83C948;
|
||||
}
|
||||
.ui-datepicker-one-month {
|
||||
float: left;
|
||||
width: 185px;
|
||||
}
|
||||
.ui-datepicker-new-row {
|
||||
clear: left;
|
||||
}
|
||||
.ui-datepicker-cover {
|
||||
display: none;
|
||||
display/**/: block;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
filter: mask();
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
width: 193px;
|
||||
height: 200px;
|
||||
}
|
||||
10228
includes/dtpick/jquery-ui.js
vendored
3549
includes/dtpick/jquery.js
vendored
@ -1,269 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="main-panel" style="width: 100%;">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="javascript:void(0)"><u>Telkomcel Dashboard</u></a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!--<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>-->
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="orange">
|
||||
<i class="material-icons">content_copy</i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Used Space</p>
|
||||
<h3 class="title">49/50
|
||||
<small>GB</small>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons text-danger">warning</i>
|
||||
<a href="#pablo">Get More Space...</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="green">
|
||||
<i class="material-icons">store</i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Revenue</p>
|
||||
<h3 class="title">$34,245</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">date_range</i> Last 24 Hours
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="red">
|
||||
<i class="material-icons">info_outline</i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Fixed Issues</p>
|
||||
<h3 class="title">75</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">local_offer</i> Tracked from Github
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="blue">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Followers</p>
|
||||
<h3 class="title">+245</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">update</i> Just Updated
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4" style="width: 50%;">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="green">
|
||||
<div class="ct-chart" id="dailySalesChart"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Daily Sales</h4>
|
||||
<p class="category">
|
||||
<span class="text-success"><i class="fa fa-long-arrow-up"></i> 55% </span> increase in today sales.</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> updated 4 minutes ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4" style="width: 50%;">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="red">
|
||||
<div class="ct-chart" id="completedTasksChart"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Completed Tasks</h4>
|
||||
<p class="category">Last Campaign Performance</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> campaign sent 2 days ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!--<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="orange">
|
||||
<div class="ct-chart" id="emailsSubscriptionChart"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Email Subscriptions</h4>
|
||||
<p class="category">Last Campaign Performance</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> campaign sent 2 days ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div class="col-md-4" style="width: 50%;">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="orange">
|
||||
<div class="ct-chart" id="dailySiteTrend"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Daily Sales</h4>
|
||||
<p class="category">
|
||||
<span class="text-success"><i class="fa fa-long-arrow-up"></i> 55% </span> increase in today sales.</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> updated 4 minutes ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4" style="width: 50%;">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="blue">
|
||||
<div class="ct-chart" id="dailyUserTrend"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Completed Tasks</h4>
|
||||
<p class="category">Last Campaign Performance</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> campaign sent 2 days ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="assets/js/demo.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
// Javascript method's body can be found in assets/js/demos.js
|
||||
demo.initDashboardPageCharts();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
@ -1,162 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Tutorial Components - Material Kit by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<!-- Fonts and icons -->
|
||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
|
||||
<!-- CSS Files -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="../assets/css/material-dashboard.css" rel="stylesheet" />
|
||||
<link href="css/demo-documentation.css" rel="stylesheet" />
|
||||
<style media="screen">
|
||||
.page-header {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.page-header .description {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.header-filter .container {
|
||||
padding-top: 33vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="components-page">
|
||||
<nav class="navbar navbar-transparent navbar-fixed-top navbar-color-on-scroll">
|
||||
<div class="container">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button id="menu-toggle" type="button" class="navbar-toggle">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar bar1"></span>
|
||||
<span class="icon-bar bar2"></span>
|
||||
<span class="icon-bar bar3"></span>
|
||||
</button>
|
||||
<a href="http://www.creative-tim.com">
|
||||
<div class="logo-container">
|
||||
<div class="logo">
|
||||
<img src="../assets/img/new_logo.png" alt="Creative Tim Logo">
|
||||
</div>
|
||||
<div class="brand">
|
||||
Creative Tim
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="http://demos.creative-tim.com/material-kit/index.html?ref=material-dashboard">Material Kit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../examples/dashboard.html">Material Dashboard</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/creativetimofficial/material-dashboard/issues">Have an issue?</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.navbar-collapse -->
|
||||
</div>
|
||||
<!-- /.container-fluid -->
|
||||
</nav>
|
||||
<div class="page-header header-filter" style="background-image: url('../assets/img/cover.jpeg');">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2 text-center">
|
||||
<h1 class="title ">Material Dashboard</h1>
|
||||
<h4 class="title">Tutorial and Components</h4>
|
||||
<h5 class="description">v1.2.0</h5>
|
||||
<a href="http://demos.creative-tim.com/material-dashboard/documentation/tutorial-components.html" class="btn btn-rose btn-fill btn-round" target="_blank">View documentation</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer footer-transparent">
|
||||
<div class="container">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://www.creative-tim.com">
|
||||
Creative Tim
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://presentation.creative-tim.com">
|
||||
About Us
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://blog.creative-tim.com">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://www.creative-tim.com/license">
|
||||
Licenses
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="social-area pull-right">
|
||||
<a class="btn btn-just-icon btn-twitter btn-simple" href="https://twitter.com/CreativeTim">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
<a class="btn btn-just-icon btn-facebook btn-simple" href="https://www.facebook.com/CreativeTim">
|
||||
<i class="fa fa-facebook-square"></i>
|
||||
</a>
|
||||
<a class="btn btn-just-icon btn-google btn-simple" href="https://plus.google.com/+CreativetimPage">
|
||||
<i class="fa fa-google-plus"></i>
|
||||
</a>
|
||||
<a class="btn btn-just-icon btn-instagram btn-simple" href="https://www.instagram.com/creativetimofficial">
|
||||
<i class="fa fa-instagram"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script> Creative Tim, made with love
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
<script>
|
||||
var header_height;
|
||||
var fixed_section;
|
||||
var floating = false;
|
||||
|
||||
$().ready(function() {
|
||||
suggestions_distance = $("#suggestions").offset();
|
||||
pay_height = $('.fixed-section').outerHeight();
|
||||
|
||||
$(window).on('scroll', md.checkScrollForTransparentNavbar);
|
||||
demo.initDocumentationCharts();
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
@ -1,606 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li class="active">
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Material Dashboard </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="orange">
|
||||
<i class="material-icons">content_copy</i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Used Space</p>
|
||||
<h3 class="title">49/50
|
||||
<small>GB</small>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons text-danger">warning</i>
|
||||
<a href="#pablo">Get More Space...</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="green">
|
||||
<i class="material-icons">store</i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Revenue</p>
|
||||
<h3 class="title">$34,245</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">date_range</i> Last 24 Hours
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="red">
|
||||
<i class="material-icons">info_outline</i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Fixed Issues</p>
|
||||
<h3 class="title">75</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">local_offer</i> Tracked from Github
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-header" data-background-color="blue">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="category">Followers</p>
|
||||
<h3 class="title">+245</h3>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">update</i> Just Updated
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="green">
|
||||
<div class="ct-chart" id="dailySalesChart"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Daily Sales</h4>
|
||||
<p class="category">
|
||||
<span class="text-success"><i class="fa fa-long-arrow-up"></i> 55% </span> increase in today sales.</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> updated 4 minutes ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="orange">
|
||||
<div class="ct-chart" id="emailsSubscriptionChart"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Email Subscriptions</h4>
|
||||
<p class="category">Last Campaign Performance</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> campaign sent 2 days ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-header card-chart" data-background-color="red">
|
||||
<div class="ct-chart" id="completedTasksChart"></div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<h4 class="title">Completed Tasks</h4>
|
||||
<p class="category">Last Campaign Performance</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<i class="material-icons">access_time</i> campaign sent 2 days ago
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-12">
|
||||
<div class="card card-nav-tabs">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<div class="nav-tabs-navigation">
|
||||
<div class="nav-tabs-wrapper">
|
||||
<span class="nav-tabs-title">Tasks:</span>
|
||||
<ul class="nav nav-tabs" data-tabs="tabs">
|
||||
<li class="active">
|
||||
<a href="#profile" data-toggle="tab">
|
||||
<i class="material-icons">bug_report</i> Bugs
|
||||
<div class="ripple-container"></div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#messages" data-toggle="tab">
|
||||
<i class="material-icons">code</i> Website
|
||||
<div class="ripple-container"></div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#settings" data-toggle="tab">
|
||||
<i class="material-icons">cloud</i> Server
|
||||
<div class="ripple-container"></div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="profile">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes" checked>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Sign contract for "What are conference organizers afraid of?"</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Lines From Great Russian Literature? Or E-mails From My Boss?</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Flooded: One year later, assessing what was lost and what was found when a ravaging rain swept through metro Detroit
|
||||
</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes" checked>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Create 4 Invisible User Experiences you Never Knew About</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane" id="messages">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes" checked>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Flooded: One year later, assessing what was lost and what was found when a ravaging rain swept through metro Detroit
|
||||
</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Sign contract for "What are conference organizers afraid of?"</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane" id="settings">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Lines From Great Russian Literature? Or E-mails From My Boss?</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes" checked>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Flooded: One year later, assessing what was lost and what was found when a ravaging rain swept through metro Detroit
|
||||
</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="optionsCheckboxes">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Sign contract for "What are conference organizers afraid of?"</td>
|
||||
<td class="td-actions text-right">
|
||||
<button type="button" rel="tooltip" title="Edit Task" class="btn btn-primary btn-simple btn-xs">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button type="button" rel="tooltip" title="Remove" class="btn btn-danger btn-simple btn-xs">
|
||||
<i class="material-icons">close</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header" data-background-color="orange">
|
||||
<h4 class="title">Employees Stats</h4>
|
||||
<p class="category">New employees on 15th September, 2016</p>
|
||||
</div>
|
||||
<div class="card-content table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead class="text-warning">
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Salary</th>
|
||||
<th>Country</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Dakota Rice</td>
|
||||
<td>$36,738</td>
|
||||
<td>Niger</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Minerva Hooper</td>
|
||||
<td>$23,789</td>
|
||||
<td>Curaçao</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Sage Rodriguez</td>
|
||||
<td>$56,142</td>
|
||||
<td>Netherlands</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>Philip Chaney</td>
|
||||
<td>$38,735</td>
|
||||
<td>Korea, South</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
// Javascript method's body can be found in assets/js/demos.js
|
||||
demo.initDashboardPageCharts();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
@ -1,238 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Icons </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-plain">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<h4 class="title">Material Design Icons</h4>
|
||||
<p class="category">Handcrafted by our friends from
|
||||
<a target="_blank" href="https://design.google.com/icons/">Google</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="iframe-container hidden-sm hidden-xs">
|
||||
<iframe src="https://design.google.com/icons/">
|
||||
<p>Your browser does not support iframes.</p>
|
||||
</iframe>
|
||||
</div>
|
||||
<div class="col-md-6 hidden-lg hidden-md text-center">
|
||||
<h5>The icons are visible on Desktop mode inside an iframe. Since the iframe is not working on Mobile and Tablets please visit the icons on their original page on Google. Check the
|
||||
<a href="https://design.google.com/icons/" target="_blank">Material Icons</a>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
|
||||
</html>
|
||||
@ -1,187 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Map </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
if ($('.main-panel > .content').length == 0) {
|
||||
$('.main-panel').css('height', '100%');
|
||||
}
|
||||
|
||||
|
||||
// Javascript method's body can be found in assets/js/demos.js
|
||||
demo.initGoogleMaps();
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
@ -1,312 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Notifications </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<h4 class="title">Notifications</h4>
|
||||
<p class="category">Handcrafted by our friend
|
||||
<a target="_blank" href="https://github.com/mouse0270">Robert McIntosh</a>. Please checkout the
|
||||
<a href="http://bootstrap-notify.remabledesigns.com/" target="_blank">full documentation.</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h5>Notifications Style</h5>
|
||||
<div class="alert alert-info">
|
||||
<span>This is a plain notification</span>
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<span>This is a notification with close button.</span>
|
||||
</div>
|
||||
<div class="alert alert-info alert-with-icon" data-notify="container">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<i data-notify="icon" class="material-icons">add_alert</i>
|
||||
<span data-notify="message">This is a notification with close button and icon.</span>
|
||||
</div>
|
||||
<div class="alert alert-info alert-with-icon" data-notify="container">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<i data-notify="icon" class="material-icons">add_alert</i>
|
||||
<span data-notify="message">This is a notification with close button and icon and have many lines. You can see that the icon and the close button are always vertically aligned. This is a beautiful notification. So you don't have to worry about the style.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h5>Notification states</h5>
|
||||
<div class="alert alert-info">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<span>
|
||||
<b> Info - </b> This is a regular notification made with ".alert-info"</span>
|
||||
</div>
|
||||
<div class="alert alert-success">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<span>
|
||||
<b> Success - </b> This is a regular notification made with ".alert-success"</span>
|
||||
</div>
|
||||
<div class="alert alert-warning">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<span>
|
||||
<b> Warning - </b> This is a regular notification made with ".alert-warning"</span>
|
||||
</div>
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<span>
|
||||
<b> Danger - </b> This is a regular notification made with ".alert-danger"</span>
|
||||
</div>
|
||||
<div class="alert alert-primary">
|
||||
<button type="button" aria-hidden="true" class="close">×</button>
|
||||
<span>
|
||||
<b> Primary - </b> This is a regular notification made with ".alert-primary"</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<div class="places-buttons">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3 text-center">
|
||||
<h5>Notifications Places
|
||||
<p class="category">Click to view notifications</p>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-primary btn-block" onclick="demo.showNotification('top','left')">Top Left</button>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-primary btn-block" onclick="demo.showNotification('top','center')">Top Center</button>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-primary btn-block" onclick="demo.showNotification('top','right')">Top Right</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-primary btn-block" onclick="demo.showNotification('bottom','left')">Bottom Left</button>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-primary btn-block" onclick="demo.showNotification('bottom','center')">Bottom Center</button>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-primary btn-block" onclick="demo.showNotification('bottom','right')">Bottom Right</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
|
||||
</html>
|
||||
@ -1,335 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Table List </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<h4 class="title">Simple Table</h4>
|
||||
<p class="category">Here is a subtitle for this table</p>
|
||||
</div>
|
||||
<div class="card-content table-responsive">
|
||||
<table class="table">
|
||||
<thead class="text-primary">
|
||||
<th>Name</th>
|
||||
<th>Country</th>
|
||||
<th>City</th>
|
||||
<th>Salary</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Dakota Rice</td>
|
||||
<td>Niger</td>
|
||||
<td>Oud-Turnhout</td>
|
||||
<td class="text-primary">$36,738</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Minerva Hooper</td>
|
||||
<td>Curaçao</td>
|
||||
<td>Sinaai-Waas</td>
|
||||
<td class="text-primary">$23,789</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sage Rodriguez</td>
|
||||
<td>Netherlands</td>
|
||||
<td>Baileux</td>
|
||||
<td class="text-primary">$56,142</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Philip Chaney</td>
|
||||
<td>Korea, South</td>
|
||||
<td>Overland Park</td>
|
||||
<td class="text-primary">$38,735</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Doris Greene</td>
|
||||
<td>Malawi</td>
|
||||
<td>Feldkirchen in Kärnten</td>
|
||||
<td class="text-primary">$63,542</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mason Porter</td>
|
||||
<td>Chile</td>
|
||||
<td>Gloucester</td>
|
||||
<td class="text-primary">$78,615</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="card card-plain">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<h4 class="title">Table on Plain Background</h4>
|
||||
<p class="category">Here is a subtitle for this table</p>
|
||||
</div>
|
||||
<div class="card-content table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Salary</th>
|
||||
<th>Country</th>
|
||||
<th>City</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Dakota Rice</td>
|
||||
<td>$36,738</td>
|
||||
<td>Niger</td>
|
||||
<td>Oud-Turnhout</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Minerva Hooper</td>
|
||||
<td>$23,789</td>
|
||||
<td>Curaçao</td>
|
||||
<td>Sinaai-Waas</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Sage Rodriguez</td>
|
||||
<td>$56,142</td>
|
||||
<td>Netherlands</td>
|
||||
<td>Baileux</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>Philip Chaney</td>
|
||||
<td>$38,735</td>
|
||||
<td>Korea, South</td>
|
||||
<td>Overland Park</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>Doris Greene</td>
|
||||
<td>$63,542</td>
|
||||
<td>Malawi</td>
|
||||
<td>Feldkirchen in Kärnten</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6</td>
|
||||
<td>Mason Porter</td>
|
||||
<td>$78,615</td>
|
||||
<td>Chile</td>
|
||||
<td>Gloucester</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
|
||||
</html>
|
||||
@ -1,313 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Typography </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<h4 class="title">Material Dashboard Heading</h4>
|
||||
<p class="category">Created using Roboto Font Family</p>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div id="typography">
|
||||
<div class="title">
|
||||
<h2>Typography</h2>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="tim-typo">
|
||||
<h1>
|
||||
<span class="tim-note">Header 1</span>The Life of Material Dashboard </h1>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<h2>
|
||||
<span class="tim-note">Header 2</span>The life of Material Dashboard </h2>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<h3>
|
||||
<span class="tim-note">Header 3</span>The life of Material Dashboard </h3>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<h4>
|
||||
<span class="tim-note">Header 4</span>The life of Material Dashboard </h4>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<h5>
|
||||
<span class="tim-note">Header 5</span>The life of Material Dashboard </h5>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<h6>
|
||||
<span class="tim-note">Header 6</span>The life of Material Dashboard </h6>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<p>
|
||||
<span class="tim-note">Paragraph</span>
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.</p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Quote</span>
|
||||
<blockquote>
|
||||
<p>
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.
|
||||
</p>
|
||||
<small>
|
||||
Kanye West, Musician
|
||||
</small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Muted Text</span>
|
||||
<p class="text-muted">
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
|
||||
</p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Primary Text</span>
|
||||
<p class="text-primary">
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Info Text</span>
|
||||
<p class="text-info">
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Success Text</span>
|
||||
<p class="text-success">
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Warning Text</span>
|
||||
<p class="text-warning">
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
|
||||
</p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<span class="tim-note">Danger Text</span>
|
||||
<p class="text-danger">
|
||||
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
|
||||
</div>
|
||||
<div class="tim-typo">
|
||||
<h2>
|
||||
<span class="tim-note">Small Tag</span>
|
||||
Header with small subtitle
|
||||
<br>
|
||||
<small>Use "small" tag for the headers</small>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
|
||||
</html>
|
||||
@ -1,286 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="card">
|
||||
<div class="card-header text-center" data-background-color="purple">
|
||||
<h4 class="title">Material Dashboard PRO</h3>
|
||||
<p class="category">Are you looking for more components? Please check our Premium Version of Material Dashboard.</p>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="table-responsive table-upgrade">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<th></th>
|
||||
<th class="text-center">Free</th>
|
||||
<th class="text-center">PRO</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Components</td>
|
||||
<td class="text-center">60</td>
|
||||
<td class="text-center">200</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Plugins</td>
|
||||
<td class="text-center">2</td>
|
||||
<td class="text-center">15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Example Pages</td>
|
||||
<td class="text-center">3</td>
|
||||
<td class="text-center">27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Login, Register, Pricing, Lock Pages</td>
|
||||
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
|
||||
<td class="text-center"><i class="fa fa-check text-success"></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>DataTables, VectorMap, SweetAlert, Wizard, jQueryValidation, FullCalendar etc...</td>
|
||||
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
|
||||
<td class="text-center"><i class="fa fa-check text-success"></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mini Sidebar</td>
|
||||
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
|
||||
<td class="text-center"><i class="fa fa-check text-success"></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Premium Support</td>
|
||||
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
|
||||
<td class="text-center"><i class="fa fa-check text-success"></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="text-center">Free</td>
|
||||
<td class="text-center">Just $49</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center"></td>
|
||||
<td class="text-center">
|
||||
<a href="#" class="btn btn-round btn-fill btn-default disabled">Current Version</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a target="_blank" href="http://www.creative-tim.com/product/material-dashboard-pro/?ref=md-free-upgrade-live" class="btn btn-round btn-fill btn-info">Upgrade to PRO</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
|
||||
</html>
|
||||
@ -1,320 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
|
||||
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>Material Dashboard by Creative Tim</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<!-- Material Dashboard CSS -->
|
||||
<link href="../assets/css/material-dashboard.css?v=1.2.0" rel="stylesheet" />
|
||||
<!-- CSS for Demo Purpose, don't include it in your project -->
|
||||
<link href="../assets/css/demo.css" rel="stylesheet" />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="sidebar" data-color="purple" data-image="../assets/img/sidebar-1.jpg">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
|
||||
|
||||
Tip 2: you can also add an image using data-image tag
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="http://www.creative-tim.com" class="simple-text">
|
||||
Creative Tim
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="dashboard.html">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="./user.html">
|
||||
<i class="material-icons">person</i>
|
||||
<p>User Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./table.html">
|
||||
<i class="material-icons">content_paste</i>
|
||||
<p>Table List</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./typography.html">
|
||||
<i class="material-icons">library_books</i>
|
||||
<p>Typography</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./icons.html">
|
||||
<i class="material-icons">bubble_chart</i>
|
||||
<p>Icons</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./maps.html">
|
||||
<i class="material-icons">location_on</i>
|
||||
<p>Maps</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./notifications.html">
|
||||
<i class="material-icons text-gray">notifications</i>
|
||||
<p>Notifications</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active-pro">
|
||||
<a href="upgrade.html">
|
||||
<i class="material-icons">unarchive</i>
|
||||
<p>Upgrade to PRO</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-panel">
|
||||
<nav class="navbar navbar-transparent navbar-absolute">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"> Profile </a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<p class="hidden-lg hidden-md">Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">notifications</i>
|
||||
<span class="notification">5</span>
|
||||
<p class="hidden-lg hidden-md">Notifications</p>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Mike John responded to your email</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You have 5 new tasks</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">You're now friend with Andrew</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another Notification</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Another One</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#pablo" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="material-icons">person</i>
|
||||
<p class="hidden-lg hidden-md">Profile</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="navbar-form navbar-right" role="search">
|
||||
<div class="form-group is-empty">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="material-input"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-white btn-round btn-just-icon">
|
||||
<i class="material-icons">search</i>
|
||||
<div class="ripple-container"></div>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header" data-background-color="purple">
|
||||
<h4 class="title">Edit Profile</h4>
|
||||
<p class="category">Complete your profile</p>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<form>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Company (disabled)</label>
|
||||
<input type="text" class="form-control" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Username</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Email address</label>
|
||||
<input type="email" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Fist Name</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Last Name</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Adress</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">City</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Country</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label">Postal Code</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>About Me</label>
|
||||
<div class="form-group label-floating">
|
||||
<label class="control-label"> Lamborghini Mercy, Your chick she so thirsty, I'm in that two seat Lambo.</label>
|
||||
<textarea class="form-control" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary pull-right">Update Profile</button>
|
||||
<div class="clearfix"></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card card-profile">
|
||||
<div class="card-avatar">
|
||||
<a href="#pablo">
|
||||
<img class="img" src="../assets/img/faces/marc.jpg" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h6 class="category text-gray">CEO / Co-Founder</h6>
|
||||
<h4 class="card-title">Alec Thompson</h4>
|
||||
<p class="card-content">
|
||||
Don't be scared of the truth because we need to restart the human foundation in truth And I love you like Kanye loves Kanye I love Rick Owens’ bed design but the back is...
|
||||
</p>
|
||||
<a href="#pablo" class="btn btn-primary btn-round">Follow</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<nav class="pull-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Company
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Portfolio
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Blog
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="copyright pull-right">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
<a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- Core JS Files -->
|
||||
<script src="../assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../assets/js/material.min.js" type="text/javascript"></script>
|
||||
<!-- Charts Plugin -->
|
||||
<script src="../assets/js/chartist.min.js"></script>
|
||||
<!-- Dynamic Elements plugin -->
|
||||
<script src="../assets/js/arrive.min.js"></script>
|
||||
<!-- PerfectScrollbar Library -->
|
||||
<script src="../assets/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="../assets/js/bootstrap-notify.js"></script>
|
||||
<!-- Google Maps Plugin -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
||||
<!-- Material Dashboard javascript methods -->
|
||||
<script src="../assets/js/material-dashboard.js?v=1.2.0"></script>
|
||||
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="../assets/js/demo.js"></script>
|
||||
|
||||
</html>
|
||||
69
index.php
@ -1,69 +0,0 @@
|
||||
<?php
|
||||
//echo substr("+67073000032",strlen("+67073000032")-8,strlen("+67073000032"));
|
||||
//return false;
|
||||
date_default_timezone_set("Asia/Tokyo");
|
||||
session_start();
|
||||
if(!file_exists("controller/libconfig.php")){echo "Your <font color=\"red\"><b>LIBRARY Not Defined</b></font>!.";return false;}require_once('controller/libconfig.php');
|
||||
if(!file_exists("controller/libhtml.php")){echo "Your <font color=\"red\"><b>LIBRARY HTML Not Defined</b></font>!.";return false;}require_once('controller/libhtml.php');
|
||||
if(!file_exists("controller/libmsginfo.php")){echo "Your <font color=\"red\"><b>LIBRARY MESSAGE Not Defined</b></font>!.";return false;}require_once('controller/libmsginfo.php');
|
||||
if(!file_exists("controller/libdefine.php")){echo "Your <font color=\"red\"><b>LIBRARY DEFINE Not Defined</b></font>!.";return false;}require_once('controller/libdefine.php');
|
||||
if(!file_exists("controller/libinterconn.php")){echo "Your <font color=\"red\"><b>LIBRARY LIB INTERCONNECTION Not Defined</b></font>!.";return false;}require_once('controller/libinterconn.php');
|
||||
require_once("controller/libdbconn.php");
|
||||
$clreg=new MY_DEFINE();
|
||||
$cllib=new MY_HTML();
|
||||
//echo $cllib->enc('1234');return false;
|
||||
$cllib->fn_checkmybrowser();
|
||||
//echo $_SESSION["employeename"]."1234";
|
||||
|
||||
$option=trim(strtolower($_REQUEST['option']));
|
||||
//echo $option;
|
||||
if($_REQUEST['sec']){$option=$cllib->dec($option);$task=$cllib->dec($_REQUEST['task']);}
|
||||
if($option){$pg=substr($option,4,strlen($option)-4);}
|
||||
if($_POST['uri'])
|
||||
{
|
||||
$uri=$cllib->uri_parsing($_POST['uri']);
|
||||
$sp=explode("|",$uri);
|
||||
$ajax=$sp[0];
|
||||
$sec=$sp[1];
|
||||
$option=$cllib->dec($sp[2]);
|
||||
$sppage=explode("_",$option);$pg=$sppage[1];
|
||||
$obj=$cllib->dec($sp[3]);
|
||||
$task=$cllib->dec($sp[4]);
|
||||
}
|
||||
// === PHP Excel On
|
||||
if($_REQUEST['xlson']){$myfile="xlsdoc/".$cllib->dec($_REQUEST['xls']).".php";require_once($myfile);exit;}
|
||||
|
||||
|
||||
if($option=="r/log")
|
||||
{
|
||||
if($cllib->login()){$cllib->mosRedirect('?'.PROJECTID);}
|
||||
}
|
||||
elseif($option=="r/out")
|
||||
{
|
||||
$cllib->logout();
|
||||
$cllib->mosRedirect('?'.PROJECTID);
|
||||
}
|
||||
|
||||
//if(!session_is_registered($_SESSION["namaemployee"]))
|
||||
if(!($_SESSION["employeename"])){require_once(LOGIN_PAGE);}
|
||||
else
|
||||
{
|
||||
//echo "FDF";
|
||||
if($_REQUEST['ajax']){$ajax=$_REQUEST['ajax'];}
|
||||
if($_POST['ajax']){$ajax=$_POST['ajax'];}
|
||||
|
||||
if($ajax)
|
||||
{
|
||||
// echo $option." ".$pg;
|
||||
require_once(PATH_OBJECT."/$option/$pg.php");
|
||||
}
|
||||
else
|
||||
{
|
||||
//echo $ajax;
|
||||
if(isset($_REQUEST['popup'])){require_once(PATH_OBJECT."/$option/$pg.php");}
|
||||
else
|
||||
{require_once(PATH_THEME."/index.php");}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1,592 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* AES Cipher Library
|
||||
* Based on Federal Information Processing Standards Publication 197 - 26th November 2001
|
||||
* @author Marcin F. Wi<57>niowski <marcin.wisniowski@mfw.pl>
|
||||
* @version 1.0.5
|
||||
* @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License
|
||||
* @package AES
|
||||
*/
|
||||
|
||||
/**
|
||||
* AES Encryption Class.
|
||||
* This class supports three lenghts of key (128, 192, 256)
|
||||
* @author Marcin F. Wi<57>niowski <marcin.wisniowski@mfw.pl>
|
||||
* @version 1.0.2
|
||||
* @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License
|
||||
*/
|
||||
class AES {
|
||||
/** @var int Number of rounds in AES algorithm (Nr) */
|
||||
private $number_of_rounds;
|
||||
/** @var int Number of columns (32-bit words) comprising the State. (Nb) */
|
||||
private $block_size;
|
||||
/** @var int Number of 32-bit words comprising the Cipher Key (Nk) */
|
||||
private $key_size;
|
||||
/** @var array S-Box: Non-linear substitution table used in several byte substitution transformations */
|
||||
private $s_box;
|
||||
/** @var array Inverted S-Box */
|
||||
private $s_box_inverted;
|
||||
/** @var array Araay of [pow(2,x),{00},{00},{00}] values used as round constant value */
|
||||
private $round_constants;
|
||||
/** @var array Logaritmic array used in Galois filed multiplication proccess */
|
||||
private $log;
|
||||
/** @var array Expotencial array used in Galois filed multiplication proccess */
|
||||
private $exp;
|
||||
/** @var array Array of collumn (words) */
|
||||
private $state;
|
||||
|
||||
const AES128 = 0;
|
||||
const AES192 = 1;
|
||||
const AES256 = 2;
|
||||
|
||||
const WORD_LENGTH = 4;
|
||||
const BYTE_LENGTH = 8;
|
||||
/**
|
||||
* Class constructor default construkts AES128 Objeckt
|
||||
* @param int Key strength default values is AES128. Also supports AES192 and AES256 values.
|
||||
*/
|
||||
public function __construct($strength=self::AES128) {
|
||||
switch($strength) {
|
||||
case self::AES256:
|
||||
$this->key_size = 8;
|
||||
$this->block_size = 4;
|
||||
$this->number_of_rounds = 14;
|
||||
break;
|
||||
case self::AES192:
|
||||
$this->key_size = 6;
|
||||
$this->block_size = 4;
|
||||
$this->number_of_rounds = 12;
|
||||
break;
|
||||
case self::AES128:
|
||||
default:
|
||||
$this->key_size = 4;
|
||||
$this->block_size = 4;
|
||||
$this->number_of_rounds = 10;
|
||||
break;
|
||||
}
|
||||
$this->createSBox();
|
||||
$this->createInvertedSBox();
|
||||
$this->createRoundConstants();
|
||||
$this->createLogarithmicArray();
|
||||
$this->createExpotecialArray();
|
||||
$this->state = array();
|
||||
}
|
||||
/**
|
||||
* Class destructor
|
||||
*/
|
||||
public function __destruct() {}
|
||||
/**
|
||||
* Definition of method which takes undefined methods of this Class
|
||||
*/
|
||||
public function __call($name, $params) {
|
||||
throw new Exception("Undefined method call of AES class. Method name: ".$name);
|
||||
}
|
||||
/**
|
||||
* Creates S-Box Table
|
||||
*/
|
||||
private function createSBox() {
|
||||
$this->s_box = array(
|
||||
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
|
||||
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0,
|
||||
0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15,
|
||||
0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75,
|
||||
0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84,
|
||||
0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF,
|
||||
0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8,
|
||||
0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2,
|
||||
0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73,
|
||||
0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB,
|
||||
0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79,
|
||||
0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08,
|
||||
0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A,
|
||||
0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E,
|
||||
0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF,
|
||||
0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16);
|
||||
}
|
||||
/**
|
||||
* Creates invertet S-Box Table
|
||||
*/
|
||||
private function createInvertedSBox() {
|
||||
$this->s_box_inverted = array(
|
||||
0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB,
|
||||
0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB,
|
||||
0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E,
|
||||
0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49, 0x6D, 0x8B, 0xD1, 0x25,
|
||||
0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92,
|
||||
0x6C, 0x70, 0x48, 0x50, 0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84,
|
||||
0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05, 0xB8, 0xB3, 0x45, 0x06,
|
||||
0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02, 0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B,
|
||||
0x3A, 0x91, 0x11, 0x41, 0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73,
|
||||
0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8, 0x1C, 0x75, 0xDF, 0x6E,
|
||||
0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89, 0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B,
|
||||
0xFC, 0x56, 0x3E, 0x4B, 0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4,
|
||||
0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xEC, 0x5F,
|
||||
0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D, 0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF,
|
||||
0xA0, 0xE0, 0x3B, 0x4D, 0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61,
|
||||
0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0C, 0x7D);
|
||||
}
|
||||
/**
|
||||
* Creates Round Contstants Table: Array of [pow(2,x),{00},{00},{00}] values used as round constant value
|
||||
*/
|
||||
private function createRoundConstants() {
|
||||
$this->round_constants = array(
|
||||
0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000,
|
||||
0x1B000000, 0x36000000, 0x6C000000, 0xD8000000, 0xAB000000, 0x4D000000, 0x9A000000, 0x2F000000,
|
||||
0x5E000000, 0xBC000000, 0x63000000, 0xC6000000, 0x97000000, 0x35000000, 0x6A000000, 0xD4000000,
|
||||
0xB3000000, 0x7D000000, 0xFA000000, 0xEF000000, 0xC5000000, 0x91000000);
|
||||
}
|
||||
/**
|
||||
* Creates Logarithmic array with generator number 0xe5
|
||||
*/
|
||||
private function createLogarithmicArray() {
|
||||
$this->log = array(
|
||||
0x00, 0xFF, 0xC8, 0x08, 0x91, 0x10, 0xD0, 0x36, 0x5A, 0x3E, 0xD8, 0x43, 0x99, 0x77, 0xFE, 0x18,
|
||||
0x23, 0x20, 0x07, 0x70, 0xA1, 0x6C, 0x0C, 0x7F, 0x62, 0x8B, 0x40, 0x46, 0xC7, 0x4B, 0xE0, 0x0E,
|
||||
0xEB, 0x16, 0xE8, 0xAD, 0xCF, 0xCD, 0x39, 0x53, 0x6A, 0x27, 0x35, 0x93, 0xD4, 0x4E, 0x48, 0xC3,
|
||||
0x2B, 0x79, 0x54, 0x28, 0x09, 0x78, 0x0F, 0x21, 0x90, 0x87, 0x14, 0x2A, 0xA9, 0x9C, 0xD6, 0x74,
|
||||
0xB4, 0x7C, 0xDE, 0xED, 0xB1, 0x86, 0x76, 0xA4, 0x98, 0xE2, 0x96, 0x8F, 0x02, 0x32, 0x1C, 0xC1,
|
||||
0x33, 0xEE, 0xEF, 0x81, 0xFD, 0x30, 0x5C, 0x13, 0x9D, 0x29, 0x17, 0xC4, 0x11, 0x44, 0x8C, 0x80,
|
||||
0xF3, 0x73, 0x42, 0x1E, 0x1D, 0xB5, 0xF0, 0x12, 0xD1, 0x5B, 0x41, 0xA2, 0xD7, 0x2C, 0xE9, 0xD5,
|
||||
0x59, 0xCB, 0x50, 0xA8, 0xDC, 0xFC, 0xF2, 0x56, 0x72, 0xA6, 0x65, 0x2F, 0x9F, 0x9B, 0x3D, 0xBA,
|
||||
0x7D, 0xC2, 0x45, 0x82, 0xA7, 0x57, 0xB6, 0xA3, 0x7A, 0x75, 0x4F, 0xAE, 0x3F, 0x37, 0x6D, 0x47,
|
||||
0x61, 0xBE, 0xAB, 0xD3, 0x5F, 0xB0, 0x58, 0xAF, 0xCA, 0x5E, 0xFA, 0x85, 0xE4, 0x4D, 0x8A, 0x05,
|
||||
0xFB, 0x60, 0xB7, 0x7B, 0xB8, 0x26, 0x4A, 0x67, 0xC6, 0x1A, 0xF8, 0x69, 0x25, 0xB3, 0xDB, 0xBD,
|
||||
0x66, 0xDD, 0xF1, 0xD2, 0xDF, 0x03, 0x8D, 0x34, 0xD9, 0x92, 0x0D, 0x63, 0x55, 0xAA, 0x49, 0xEC,
|
||||
0xBC, 0x95, 0x3C, 0x84, 0x0B, 0xF5, 0xE6, 0xE7, 0xE5, 0xAC, 0x7E, 0x6E, 0xB9, 0xF9, 0xDA, 0x8E,
|
||||
0x9A, 0xC9, 0x24, 0xE1, 0x0A, 0x15, 0x6B, 0x3A, 0xA0, 0x51, 0xF4, 0xEA, 0xB2, 0x97, 0x9E, 0x5D,
|
||||
0x22, 0x88, 0x94, 0xCE, 0x19, 0x01, 0x71, 0x4C, 0xA5, 0xE3, 0xC5, 0x31, 0xBB, 0xCC, 0x1F, 0x2D,
|
||||
0x3B, 0x52, 0x6F, 0xF6, 0x2E, 0x89, 0xF7, 0xC0, 0x68, 0x1B, 0x64, 0x04, 0x06, 0xBF, 0x83, 0x38);
|
||||
}
|
||||
/**
|
||||
* Creates Expotencial array with generator number 0xe5
|
||||
*/
|
||||
private function createExpotecialArray() {
|
||||
$this->exp = array(
|
||||
0x01, 0xe5, 0x4c, 0xb5, 0xfb, 0x9f, 0xfc, 0x12, 0x03, 0x34, 0xd4, 0xc4, 0x16, 0xba, 0x1f, 0x36,
|
||||
0x05, 0x5c, 0x67, 0x57, 0x3a, 0xd5, 0x21, 0x5a, 0x0f, 0xe4, 0xa9, 0xf9, 0x4e, 0x64, 0x63, 0xee,
|
||||
0x11, 0x37, 0xe0, 0x10, 0xd2, 0xac, 0xa5, 0x29, 0x33, 0x59, 0x3b, 0x30, 0x6d, 0xef, 0xf4, 0x7b,
|
||||
0x55, 0xeb, 0x4d, 0x50, 0xb7, 0x2a, 0x07, 0x8d, 0xff, 0x26, 0xd7, 0xf0, 0xc2, 0x7e, 0x09, 0x8c,
|
||||
0x1a, 0x6a, 0x62, 0x0b, 0x5d, 0x82, 0x1b, 0x8f, 0x2e, 0xbe, 0xa6, 0x1d, 0xe7, 0x9d, 0x2d, 0x8a,
|
||||
0x72, 0xd9, 0xf1, 0x27, 0x32, 0xbc, 0x77, 0x85, 0x96, 0x70, 0x08, 0x69, 0x56, 0xdf, 0x99, 0x94,
|
||||
0xa1, 0x90, 0x18, 0xbb, 0xfa, 0x7a, 0xb0, 0xa7, 0xf8, 0xab, 0x28, 0xd6, 0x15, 0x8e, 0xcb, 0xf2,
|
||||
0x13, 0xe6, 0x78, 0x61, 0x3f, 0x89, 0x46, 0x0d, 0x35, 0x31, 0x88, 0xa3, 0x41, 0x80, 0xca, 0x17,
|
||||
0x5f, 0x53, 0x83, 0xfe, 0xc3, 0x9b, 0x45, 0x39, 0xe1, 0xf5, 0x9e, 0x19, 0x5e, 0xb6, 0xcf, 0x4b,
|
||||
0x38, 0x04, 0xb9, 0x2b, 0xe2, 0xc1, 0x4a, 0xdd, 0x48, 0x0c, 0xd0, 0x7d, 0x3d, 0x58, 0xde, 0x7c,
|
||||
0xd8, 0x14, 0x6b, 0x87, 0x47, 0xe8, 0x79, 0x84, 0x73, 0x3c, 0xbd, 0x92, 0xc9, 0x23, 0x8b, 0x97,
|
||||
0x95, 0x44, 0xdc, 0xad, 0x40, 0x65, 0x86, 0xa2, 0xa4, 0xcc, 0x7f, 0xec, 0xc0, 0xaf, 0x91, 0xfd,
|
||||
0xf7, 0x4f, 0x81, 0x2f, 0x5b, 0xea, 0xa8, 0x1c, 0x02, 0xd1, 0x98, 0x71, 0xed, 0x25, 0xe3, 0x24,
|
||||
0x06, 0x68, 0xb3, 0x93, 0x2c, 0x6f, 0x3e, 0x6c, 0x0a, 0xb8, 0xce, 0xae, 0x74, 0xb1, 0x42, 0xb4,
|
||||
0x1e, 0xd3, 0x49, 0xe9, 0x9c, 0xc8, 0xc6, 0xc7, 0x22, 0x6e, 0xdb, 0x20, 0xbf, 0x43, 0x51, 0x52,
|
||||
0x66, 0xb2, 0x76, 0x60, 0xda, 0xc5, 0xf3, 0xf6, 0xaa, 0xcd, 0x9a, 0xa0, 0x75, 0x54, 0x0e, 0x01);
|
||||
}
|
||||
/**
|
||||
* Encrypts 16 bytes of data using AES algoritm
|
||||
* @param string Decrypted Content
|
||||
* @return string Encrypted Content
|
||||
*/
|
||||
public function encrypt($content, $key) {
|
||||
$expand_key = $this->keyExpansion($this->convertToWords($key));
|
||||
$this->state = $this->convertToWords($content);
|
||||
$this->addRoundKey($this->createRoundKey(0, $expand_key));
|
||||
for ($round = 1; $round < $this->number_of_rounds; $round++) {
|
||||
$this->subBytes();
|
||||
$this->shiftRows();
|
||||
$this->mixColumns();
|
||||
$this->addRoundKey($this->createRoundKey($round, $expand_key));
|
||||
}
|
||||
$this->subBytes();
|
||||
$this->shiftRows();
|
||||
$this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key));
|
||||
return $this->convertToHexString();
|
||||
}
|
||||
/**
|
||||
* Decrypts encrypteta 16 bytes of data using AES algoritm
|
||||
* @param string Encrypted Content
|
||||
* @return string Decrypted Content
|
||||
*/
|
||||
public function decrypt($content, $key) {
|
||||
$expand_key = $this->keyExpansion($this->convertToWords($key));
|
||||
$this->state = $this->convertToWords($content);
|
||||
$this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key));
|
||||
for ($round = $this->number_of_rounds - 1; $round > 0; $round--) {
|
||||
$this->invShiftRows();
|
||||
$this->invSubBytes();
|
||||
$this->addRoundKey($this->createRoundKey($round, $expand_key));
|
||||
$this->invMixColumns();
|
||||
}
|
||||
$this->invShiftRows();
|
||||
$this->invSubBytes();
|
||||
$this->addRoundKey($this->createRoundKey(0, $expand_key));
|
||||
return $this->convertToHexString();
|
||||
}
|
||||
/**
|
||||
* Processes the State table using a nonlinear byte substitution table (S-box).
|
||||
*/
|
||||
private function subBytes() {
|
||||
for ($i=0; $i < $this->block_size; $i++) {
|
||||
$this->state[$i] = $this->subWord($this->state[$i]);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Inversion of subBytes() method
|
||||
* @see subBytes()
|
||||
*/
|
||||
private function invSubBytes() {
|
||||
for ($i=0; $i < $this->block_size; $i++) {
|
||||
$this->state[$i] = $this->subWord($this->state[$i], true);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Processes the State by cyclically shifting the last three rows of the State by different offsets.
|
||||
*/
|
||||
private function shiftRows() {
|
||||
for ($i=1; $i < self::WORD_LENGTH; $i++) {
|
||||
$buffer = array();
|
||||
for ($j=$this->block_size-1; $j >= 0; $j--) {
|
||||
$pos = ($i + $j) % $this->block_size;
|
||||
$buffer[$j] = $this->getByteFromWord($this->state[$j], $i);
|
||||
$byte = isset($buffer[$pos]) ? $buffer[$pos] : $this->getByteFromWord($this->state[$pos], $i);
|
||||
$this->state[$j] = $this->putByteIntoWord( $byte, $this->state[$j], $i);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Inversion of shiftRows() method.
|
||||
* @see shiftRows()
|
||||
*/
|
||||
private function invShiftRows() {
|
||||
for ($i=1; $i < self::WORD_LENGTH; $i++) {
|
||||
$buffer = array();
|
||||
for ($j=0; $j < $this->block_size; $j++) {
|
||||
$pos = ($i + $j) % $this->block_size;
|
||||
$buffer[$pos] = $this->getByteFromWord($this->state[$pos], $i);
|
||||
$byte = isset($buffer[$j]) ? $buffer[$j] : $this->getByteFromWord($this->state[$j], $i);
|
||||
$this->state[$pos] = $this->putByteIntoWord( $byte, $this->state[$pos], $i);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Takes all of the columns of theState and mixes their data to produce new columns.
|
||||
*/
|
||||
private function mixColumns() {
|
||||
$mul1 = array();
|
||||
$mul2 = array();
|
||||
$mul3 = array();
|
||||
for ($i=0; $i < $this->block_size; $i++) {
|
||||
for ($j = 0; $j < self::WORD_LENGTH; $j++) {
|
||||
$mul1[$j] = $this->getByteFromWord($this->state[$i], $j);
|
||||
$mul2[$j] = $this->galoisFieldMultiplication($mul1[$j], 0x02);
|
||||
$mul3[$j] = $mul2[$j] ^ $mul1[$j];
|
||||
}
|
||||
for ($j = 0; $j < self::WORD_LENGTH; $j++) {
|
||||
$byte = $mul2[$j] ^ $mul1[($j+3) % $this->block_size] ^ $mul1[($j+2) % $this->block_size] ^ $mul3[($j+1) % $this->block_size];
|
||||
$this->state[$i] = $this->putByteIntoWord( $byte, $this->state[$i], $j);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Inversion of mixColumns()
|
||||
* @see mixColumns()
|
||||
*/
|
||||
private function invMixColumns() {
|
||||
$mulE = array();
|
||||
$mulD = array();
|
||||
$mulB = array();
|
||||
$mul9 = array();
|
||||
for ($i=0; $i < $this->block_size; $i++) {
|
||||
for ($j = 0; $j < self::WORD_LENGTH; $j++) {
|
||||
$temp = $this->getByteFromWord($this->state[$i], $j);
|
||||
$mulE[$j] = $this->galoisFieldMultiplication($temp, 0x0E);
|
||||
$mulD[$j] = $this->galoisFieldMultiplication($temp, 0x0D);
|
||||
$mulB[$j] = $this->galoisFieldMultiplication($temp, 0x0B);
|
||||
$mul9[$j] = $this->galoisFieldMultiplication($temp, 0x09);
|
||||
}
|
||||
for ($j = 0; $j < self::WORD_LENGTH; $j++) {
|
||||
$byte = $mulE[$j] ^ $mul9[($j+3) % $this->block_size] ^ $mulD[($j+2) % $this->block_size] ^ $mulB[($j+1) % $this->block_size];
|
||||
$this->state[$i] = $this->putByteIntoWord( $byte, $this->state[$i], $j);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Adds Round Key to the State using an XOR operation.
|
||||
*/
|
||||
private function addRoundKey($key) {
|
||||
for ($i=0; $i < $this->block_size; $i++) {
|
||||
$this->state[$i] ^= $key[$i];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Generates Key schedule from Cipher Key
|
||||
* @return array Expanded key array
|
||||
*/
|
||||
private function keyExpansion($key) {
|
||||
$expanded_key = array();
|
||||
for ($i=0; $i<$this->key_size; $i++) {
|
||||
$expanded_key[$i] = $key[$i];
|
||||
}
|
||||
for ($i=$this->key_size; $i<$this->block_size * ($this->number_of_rounds + 1); $i++) {
|
||||
$temp = $expanded_key[$i - 1];
|
||||
if ($i % $this->key_size == 0)
|
||||
$temp = $this->subWord($this->rotWord($temp)) ^ $this->round_constants[$i / $this->key_size -1];
|
||||
else if ($this->key_size > 6 && $i % $this->key_size == 4)
|
||||
$temp = $this->subWord($temp);
|
||||
$expanded_key[$i] = $expanded_key[$i - $this->key_size] ^ $temp;
|
||||
}
|
||||
return $expanded_key;
|
||||
}
|
||||
/**
|
||||
* Creates array of 4 words from expanded key depend of round
|
||||
* @param int Number of round
|
||||
* @param array Expanded key array
|
||||
* @return array Round key.
|
||||
*/
|
||||
private function createRoundKey($round, $key) {
|
||||
return array($key[self::WORD_LENGTH * $round], $key[self::WORD_LENGTH * $round + 1], $key[self::WORD_LENGTH * $round + 2], $key[self::WORD_LENGTH * $round + 3]);
|
||||
}
|
||||
/**
|
||||
* Galios field multiplication function
|
||||
* @param int First byte
|
||||
* @param int Second byte
|
||||
* @return int Multiplication result
|
||||
*/
|
||||
private function galoisFieldMultiplication($number_a, $number_b) {
|
||||
$temp = $this->exp[($this->log[$number_a] + $this->log[$number_b]) % 0xFF];
|
||||
$result = $number_a ? ($number_b ? $temp : 0) : 0;
|
||||
return $result;
|
||||
/* // Old Implementanion
|
||||
$result = 0;
|
||||
for ($i=0; $i<self::BYTE_LENGTH; $i++) {
|
||||
if ($number_b & 1) $result ^= $number_a;
|
||||
$number_a = ($number_a << 1) ^ (($number_a & 0x80) ? 0x1B : 0);
|
||||
$number_b >>= 1;
|
||||
}
|
||||
return $result; */
|
||||
}
|
||||
/**
|
||||
* Changing value of each byte in word using SBOX table
|
||||
* @param word Input word
|
||||
* @param bool Inversion flag. Default value: false
|
||||
* @return word Result word of transformation
|
||||
*/
|
||||
private function subWord($word, $invers=false) {
|
||||
if (!$invers)
|
||||
return $this->s_box[(( $word >> 24 ) & 0x000000FF)] << 24 |
|
||||
$this->s_box[(($word & 0x00FF0000) >> 16)] << 16 |
|
||||
$this->s_box[(($word & 0x0000FF00) >> 8 )] << 8 |
|
||||
$this->s_box[($word & 0x000000FF)];
|
||||
else
|
||||
return $this->s_box_inverted[(( $word >> 24 ) & 0x000000FF)] << 24 |
|
||||
$this->s_box_inverted[(($word & 0x00FF0000) >> 16)] << 16 |
|
||||
$this->s_box_inverted[(($word & 0x0000FF00) >> 8 )] << 8 |
|
||||
$this->s_box_inverted[($word & 0x000000FF)];
|
||||
|
||||
}
|
||||
/**
|
||||
* Clock-wise rotation of bytes in word [aa bb cc dd] -> [bb cc dd aa]
|
||||
* @param word Input word
|
||||
* @return word Result of transformation
|
||||
*/
|
||||
private function rotWord($word) {
|
||||
return (( $word << 8 ) & 0xFFFFFFFF ) | (( $word >> 24 ) & 0x000000FF);
|
||||
}
|
||||
/**
|
||||
* Get specyfic byte from word
|
||||
* @param word Input word
|
||||
* @param int Position of byte in word
|
||||
* @return byte Selected byte
|
||||
*/
|
||||
private function getByteFromWord($word, $position) {
|
||||
switch ($position) {
|
||||
case 0:
|
||||
return ( $word >> 24 ) & 0x000000FF;
|
||||
case 1:
|
||||
return ($word & 0x00FF0000) >> 16;
|
||||
case 2:
|
||||
return ($word & 0x0000FF00) >> 8;
|
||||
case 3:
|
||||
return $word & 0x000000FF;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Puts byte into word
|
||||
* @param byte Byte
|
||||
* @param word Word
|
||||
* @param int Position of insertion
|
||||
* @return word Modified word
|
||||
*/
|
||||
private function putByteIntoWord($byte, $word, $position) {
|
||||
switch ($position) {
|
||||
case 0:
|
||||
return (($word & 0x00FFFFFF) | (($byte << 24) & 0xFF000000));
|
||||
case 1:
|
||||
return (($word & 0xFF00FFFF) | (($byte << 16) & 0x00FF0000));
|
||||
case 2:
|
||||
return (($word & 0xFFFF00FF) | (($byte << 8) & 0x0000FF00));
|
||||
case 3:
|
||||
return (($word & 0xFFFFFF00) | $byte);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Creates words array from hexadecimal string
|
||||
* @param string hexadecimal string
|
||||
* @return array words reprezentatnion of content
|
||||
*/
|
||||
private function convertToWords($content) {
|
||||
$words = array();
|
||||
for ($i = 0; $i < strlen($content); $i+=2*$this->block_size){
|
||||
$words[$i/(2*$this->block_size)] = hexdec(substr($content, $i, 2*$this->block_size));
|
||||
}
|
||||
return $words;
|
||||
}
|
||||
/**
|
||||
* Converts state array into hexadecimal string
|
||||
* @return string 16 bytes string representation of state array
|
||||
*/
|
||||
private function convertToHexString() {
|
||||
$string = "";
|
||||
for ($i = 0; $i < $this->block_size; $i++) {
|
||||
$string .= $this->addZeros(dechex($this->state[$i]));
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
/**
|
||||
* Converts Strings to HEX representation
|
||||
* @param string Input string
|
||||
* @return string Hex representation
|
||||
*/
|
||||
public function stringToHex($str) {
|
||||
$hex="";
|
||||
$zeros = "";
|
||||
$len = 2 * self::WORD_LENGTH * $this->block_size;
|
||||
for ($i = 0; $i < strlen($str); $i++){
|
||||
$val = dechex(ord($str{$i}));
|
||||
if( strlen($val)< 2 ) $val="0".$val;
|
||||
$hex.=$val;
|
||||
}
|
||||
for ($i = 0; $i < $len - strlen($hex); $i++){
|
||||
$zeros .= '0';
|
||||
}
|
||||
return $hex.$zeros;
|
||||
}
|
||||
/**
|
||||
* Converts HEX values into strings
|
||||
* @param string HEX value in string repreentation
|
||||
* @return string
|
||||
*/
|
||||
public function hexToString($hex) {
|
||||
$str="";
|
||||
for($i=0; $i<strlen($hex); $i=$i+2 ) {
|
||||
$temp = hexdec(substr($hex, $i, 2));
|
||||
if (!$temp) continue;
|
||||
$str .= chr($temp);
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
/**
|
||||
* Add zeros in front od Hex string representation of single word
|
||||
* @return string Zeros string
|
||||
*/
|
||||
private function addZeros($word) {
|
||||
$len = 2*self::WORD_LENGTH - strlen($word);
|
||||
$zeros = "";
|
||||
for ($i=0; $i < $len; $i++)
|
||||
$zeros .= '0';
|
||||
return $zeros.$word;
|
||||
}
|
||||
/**
|
||||
* Self testing method
|
||||
*/
|
||||
public function selfTest() {
|
||||
$content = '00112233445566778899aabbccddeeff';
|
||||
$password = 'Test password';
|
||||
$key = md5($password);
|
||||
print('Challenge content: 0x'.$content.'<br />');
|
||||
print('Password: "'.$password.'", key: 0x'.$key.'<br />');
|
||||
|
||||
print('<br />Encryption process<br />');
|
||||
$start = microtime(true);
|
||||
$this->state = $this->convertToWords($content);
|
||||
$time1 = microtime(true);
|
||||
$expand_key = $this->keyExpansion($this->convertToWords($key));
|
||||
$time2 = microtime(true);
|
||||
print('Key expansion time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
$this->addRoundKey($this->createRoundKey(0, $expand_key));
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->subBytes();
|
||||
$time2 = microtime(true);
|
||||
print('Sub bytes time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->shiftRows();
|
||||
$time2 = microtime(true);
|
||||
print('Shift rows time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->mixColumns();
|
||||
$time2 = microtime(true);
|
||||
print('Mix columns time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->addRoundKey($this->createRoundKey(1, $expand_key));
|
||||
$time2 = microtime(true);
|
||||
print('Add round key time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
for ($round = 2; $round < $this->number_of_rounds; $round++) {
|
||||
$this->subBytes();
|
||||
$this->shiftRows();
|
||||
$this->mixColumns();
|
||||
$this->addRoundKey($this->createRoundKey($round, $expand_key));
|
||||
}
|
||||
$this->subBytes();
|
||||
$this->shiftRows();
|
||||
$this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key));
|
||||
$end = microtime(true);
|
||||
$content = $this->convertToHexString();
|
||||
print('Encryption time: '.(($end-$start)*1000).' ms<br />Encrypted content: 0x'.$content.'<br />');
|
||||
|
||||
print('<br />Decryption process<br />');
|
||||
|
||||
$start = microtime(true);
|
||||
$this->state = $this->convertToWords($content);
|
||||
$time1 = microtime(true);
|
||||
$expand_key = $this->keyExpansion($this->convertToWords($key));
|
||||
$time2 = microtime(true);
|
||||
print('Key expansion time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
$this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key));
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->invShiftRows();
|
||||
$time2 = microtime(true);
|
||||
print('Invers shift rows time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->invSubBytes();
|
||||
$time2 = microtime(true);
|
||||
print('Invers sub bytes time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->addRoundKey($this->createRoundKey($this->number_of_rounds -1, $expand_key));
|
||||
$time2 = microtime(true);
|
||||
print('Add round key time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
$time1 = microtime(true);
|
||||
$this->invMixColumns();
|
||||
$time2 = microtime(true);
|
||||
print('Invers mix columns time: '.(($time2 - $time1)*1000).' ms<br />');
|
||||
|
||||
for ($round = $this->number_of_rounds - 2; $round > 0; $round--) {
|
||||
$this->invShiftRows();
|
||||
$this->invSubBytes();
|
||||
$this->addRoundKey($this->createRoundKey($round, $expand_key));
|
||||
$this->invMixColumns();
|
||||
}
|
||||
$this->invShiftRows();
|
||||
$this->invSubBytes();
|
||||
$this->addRoundKey($this->createRoundKey(0, $expand_key));
|
||||
$end = microtime(true);
|
||||
$content = $this->convertToHexString();
|
||||
print('Decryption time: '.(($end-$start)*1000).' ms<br />Decrypted content: 0x'.$content.'<br />');
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,85 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* AES Cipher Library
|
||||
* Based on Federal Information Processing Standards Publication 197 - 26th November 2001
|
||||
* @author Marcin F. Wiśniowski <marcin.wisniowski@mfw.pl>
|
||||
* @version 1.0.5
|
||||
* @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License
|
||||
* @package AES
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see AES
|
||||
*/
|
||||
require_once('AES.class.php');
|
||||
|
||||
/**
|
||||
* Text cipher class
|
||||
* This class is using AES crypt algoritm
|
||||
* @author Marcin F. Wiśniowski <marcin.wisniowski@mfw.pl>
|
||||
* @version 1.0.0
|
||||
* @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License
|
||||
*/
|
||||
class AESCipher {
|
||||
/** @var object An AES cipher object. */
|
||||
private $_cipher;
|
||||
/** @var int Key strenght */
|
||||
private $_strenght;
|
||||
/** @const int Maximum number of bytes in encryption chunk */
|
||||
const BYTE_LIMIT = 16;
|
||||
/**
|
||||
* Class constructor
|
||||
* It initialize cipher object with proper key lenght. By default it uses 128bit.
|
||||
* @param int Key strength, Takes AES Class const values
|
||||
* @see AES::AES128
|
||||
*/
|
||||
public function __construct($strength=AES::AES128) {
|
||||
$this->_cipher = new AES($strength);
|
||||
$this->_strenght = $strength;
|
||||
}
|
||||
/**
|
||||
* Generates Hexadecimal key from inserted pass phrase
|
||||
* @param string Pass phrase
|
||||
* @return string Hexadecimal key
|
||||
*/
|
||||
private function _generateKey($password) {
|
||||
switch ($this->_strenght) {
|
||||
case AES::AES256:
|
||||
return md5($password).md5($password.'1');
|
||||
case AES::AES192:
|
||||
return sha1($password);
|
||||
case AES::AES128:
|
||||
default:
|
||||
return md5($password);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Encrypt method
|
||||
* @param string input string
|
||||
* @param string Pass phrase
|
||||
* @return string Cryptext
|
||||
*/
|
||||
public function encrypt($content, $password) {
|
||||
$key = $this->_generateKey($password);
|
||||
$input = str_split($this->_cipher->stringToHex($content), self::BYTE_LIMIT*2);
|
||||
$output = '';
|
||||
foreach ($input as $chunk)
|
||||
$output .= $this->_cipher->encrypt($chunk, $key);
|
||||
return $this->_cipher->hexToString($output);
|
||||
}
|
||||
/**
|
||||
* Decrypt method
|
||||
* @param string Cryptext
|
||||
* @param string Pass phrase
|
||||
* @return string Decoded message
|
||||
*/
|
||||
public function decrypt($cryptext, $password) {
|
||||
$key = $this->_generateKey($password);
|
||||
$input = str_split($this->_cipher->stringToHex($cryptext), self::BYTE_LIMIT*2);
|
||||
$output = '';
|
||||
foreach ($input as $chunk)
|
||||
$output .= $this->_cipher->decrypt($chunk, $key);
|
||||
return $this->_cipher->hexToString($output);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
// SET THE DESTINATION FOLDER
|
||||
$source = $_FILES["upimage"]["tmp_name"];
|
||||
$filename="TIC_".date("YmdHis").".png";
|
||||
$destination = "../uploads/temps/".$filename;
|
||||
|
||||
// MOVE UPLOADED FILE TO DESTINATION
|
||||
echo move_uploaded_file($source, $destination) ? "ok|$filename" : "failed|ERROR UPLOADING";
|
||||
|
||||
?>
|
||||
@ -1,248 +0,0 @@
|
||||
<?php
|
||||
|
||||
class bmp {
|
||||
|
||||
var $mpdf = null;
|
||||
|
||||
function bmp(&$mpdf) {
|
||||
$this->mpdf = $mpdf;
|
||||
}
|
||||
|
||||
|
||||
function _getBMPimage($data, $file) {
|
||||
$info = array();
|
||||
// Adapted from script by Valentin Schmidt
|
||||
// http://staff.dasdeck.de/valentin/fpdf/fpdf_bmp/
|
||||
$bfOffBits=$this->_fourbytes2int_le(substr($data,10,4));
|
||||
$width=$this->_fourbytes2int_le(substr($data,18,4));
|
||||
$height=$this->_fourbytes2int_le(substr($data,22,4));
|
||||
$flip = ($height<0);
|
||||
if ($flip) $height =-$height;
|
||||
$biBitCount=$this->_twobytes2int_le(substr($data,28,2));
|
||||
$biCompression=$this->_fourbytes2int_le(substr($data,30,4));
|
||||
$info = array('w'=>$width, 'h'=>$height);
|
||||
if ($biBitCount<16){
|
||||
$info['cs'] = 'Indexed';
|
||||
$info['bpc'] = $biBitCount;
|
||||
$palStr = substr($data,54,($bfOffBits-54));
|
||||
$pal = '';
|
||||
$cnt = strlen($palStr)/4;
|
||||
for ($i=0;$i<$cnt;$i++){
|
||||
$n = 4*$i;
|
||||
$pal .= $palStr[$n+2].$palStr[$n+1].$palStr[$n];
|
||||
}
|
||||
$info['pal'] = $pal;
|
||||
}
|
||||
else{
|
||||
$info['cs'] = 'DeviceRGB';
|
||||
$info['bpc'] = 8;
|
||||
}
|
||||
|
||||
if ($this->mpdf->restrictColorSpace==1 || $this->mpdf->PDFX || $this->mpdf->restrictColorSpace==3) {
|
||||
if (($this->mpdf->PDFA && !$this->mpdf->PDFAauto) || ($this->mpdf->PDFX && !$this->mpdf->PDFXauto)) { $this->mpdf->PDFAXwarnings[] = "Image cannot be converted to suitable colour space for PDFA or PDFX file - ".$file." - (Image replaced by 'no-image'.)"; }
|
||||
return array('error' => "BMP Image cannot be converted to suitable colour space - ".$file." - (Image replaced by 'no-image'.)");
|
||||
}
|
||||
|
||||
$biXPelsPerMeter=$this->_fourbytes2int_le(substr($data,38,4)); // horizontal pixels per meter, usually set to zero
|
||||
//$biYPelsPerMeter=$this->_fourbytes2int_le(substr($data,42,4)); // vertical pixels per meter, usually set to zero
|
||||
$biXPelsPerMeter=round($biXPelsPerMeter/1000 *25.4);
|
||||
//$biYPelsPerMeter=round($biYPelsPerMeter/1000 *25.4);
|
||||
$info['set-dpi'] = $biXPelsPerMeter;
|
||||
|
||||
switch ($biCompression){
|
||||
case 0:
|
||||
$str = substr($data,$bfOffBits);
|
||||
break;
|
||||
case 1: # BI_RLE8
|
||||
$str = $this->rle8_decode(substr($data,$bfOffBits), $width);
|
||||
break;
|
||||
case 2: # BI_RLE4
|
||||
$str = $this->rle4_decode(substr($data,$bfOffBits), $width);
|
||||
break;
|
||||
}
|
||||
$bmpdata = '';
|
||||
$padCnt = (4-ceil(($width/(8/$biBitCount)))%4)%4;
|
||||
switch ($biBitCount){
|
||||
case 1:
|
||||
case 4:
|
||||
case 8:
|
||||
$w = floor($width/(8/$biBitCount)) + ($width%(8/$biBitCount)?1:0);
|
||||
$w_row = $w + $padCnt;
|
||||
if ($flip){
|
||||
for ($y=0;$y<$height;$y++){
|
||||
$y0 = $y*$w_row;
|
||||
for ($x=0;$x<$w;$x++)
|
||||
$bmpdata .= $str[$y0+$x];
|
||||
}
|
||||
}else{
|
||||
for ($y=$height-1;$y>=0;$y--){
|
||||
$y0 = $y*$w_row;
|
||||
for ($x=0;$x<$w;$x++)
|
||||
$bmpdata .= $str[$y0+$x];
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 16:
|
||||
$w_row = $width*2 + $padCnt;
|
||||
if ($flip){
|
||||
for ($y=0;$y<$height;$y++){
|
||||
$y0 = $y*$w_row;
|
||||
for ($x=0;$x<$width;$x++){
|
||||
$n = (ord( $str[$y0 + 2*$x + 1])*256 + ord( $str[$y0 + 2*$x]));
|
||||
$b = ($n & 31)<<3; $g = ($n & 992)>>2; $r = ($n & 31744)>>7128;
|
||||
$bmpdata .= chr($r) . chr($g) . chr($b);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
for ($y=$height-1;$y>=0;$y--){
|
||||
$y0 = $y*$w_row;
|
||||
for ($x=0;$x<$width;$x++){
|
||||
$n = (ord( $str[$y0 + 2*$x + 1])*256 + ord( $str[$y0 + 2*$x]));
|
||||
$b = ($n & 31)<<3; $g = ($n & 992)>>2; $r = ($n & 31744)>>7;
|
||||
$bmpdata .= chr($r) . chr($g) . chr($b);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 24:
|
||||
case 32:
|
||||
$byteCnt = $biBitCount/8;
|
||||
$w_row = $width*$byteCnt + $padCnt;
|
||||
|
||||
if ($flip){
|
||||
for ($y=0;$y<$height;$y++){
|
||||
$y0 = $y*$w_row;
|
||||
for ($x=0;$x<$width;$x++){
|
||||
$i = $y0 + $x*$byteCnt ; # + 1
|
||||
$bmpdata .= $str[$i+2].$str[$i+1].$str[$i];
|
||||
}
|
||||
}
|
||||
}else{
|
||||
for ($y=$height-1;$y>=0;$y--){
|
||||
$y0 = $y*$w_row;
|
||||
for ($x=0;$x<$width;$x++){
|
||||
$i = $y0 + $x*$byteCnt ; # + 1
|
||||
$bmpdata .= $str[$i+2].$str[$i+1].$str[$i];
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return array('error' => 'Error parsing BMP image - Unsupported image biBitCount');
|
||||
}
|
||||
if ($this->mpdf->compress) {
|
||||
$bmpdata=gzcompress($bmpdata);
|
||||
$info['f']='FlateDecode';
|
||||
}
|
||||
$info['data']=$bmpdata;
|
||||
$info['type']='bmp';
|
||||
return $info;
|
||||
}
|
||||
|
||||
function _fourbytes2int_le($s) {
|
||||
//Read a 4-byte integer from string
|
||||
return (ord($s[3])<<24) + (ord($s[2])<<16) + (ord($s[1])<<8) + ord($s[0]);
|
||||
}
|
||||
|
||||
function _twobytes2int_le($s) {
|
||||
//Read a 2-byte integer from string
|
||||
return (ord(substr($s, 1, 1))<<8) + ord(substr($s, 0, 1));
|
||||
}
|
||||
|
||||
|
||||
# Decoder for RLE8 compression in windows bitmaps
|
||||
# see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp
|
||||
function rle8_decode ($str, $width){
|
||||
$lineWidth = $width + (3 - ($width-1) % 4);
|
||||
$out = '';
|
||||
$cnt = strlen($str);
|
||||
for ($i=0;$i<$cnt;$i++){
|
||||
$o = ord($str[$i]);
|
||||
switch ($o){
|
||||
case 0: # ESCAPE
|
||||
$i++;
|
||||
switch (ord($str[$i])){
|
||||
case 0: # NEW LINE
|
||||
$padCnt = $lineWidth - strlen($out)%$lineWidth;
|
||||
if ($padCnt<$lineWidth) $out .= str_repeat(chr(0), $padCnt); # pad line
|
||||
break;
|
||||
case 1: # END OF FILE
|
||||
$padCnt = $lineWidth - strlen($out)%$lineWidth;
|
||||
if ($padCnt<$lineWidth) $out .= str_repeat(chr(0), $padCnt); # pad line
|
||||
break 3;
|
||||
case 2: # DELTA
|
||||
$i += 2;
|
||||
break;
|
||||
default: # ABSOLUTE MODE
|
||||
$num = ord($str[$i]);
|
||||
for ($j=0;$j<$num;$j++)
|
||||
$out .= $str[++$i];
|
||||
if ($num % 2) $i++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$out .= str_repeat($str[++$i], $o);
|
||||
}
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
# Decoder for RLE4 compression in windows bitmaps
|
||||
# see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp
|
||||
function rle4_decode ($str, $width){
|
||||
$w = floor($width/2) + ($width % 2);
|
||||
$lineWidth = $w + (3 - ( ($width-1) / 2) % 4);
|
||||
$pixels = array();
|
||||
$cnt = strlen($str);
|
||||
for ($i=0;$i<$cnt;$i++){
|
||||
$o = ord($str[$i]);
|
||||
switch ($o){
|
||||
case 0: # ESCAPE
|
||||
$i++;
|
||||
switch (ord($str[$i])){
|
||||
case 0: # NEW LINE
|
||||
while (count($pixels)%$lineWidth!=0)
|
||||
$pixels[]=0;
|
||||
break;
|
||||
case 1: # END OF FILE
|
||||
while (count($pixels)%$lineWidth!=0)
|
||||
$pixels[]=0;
|
||||
break 3;
|
||||
case 2: # DELTA
|
||||
$i += 2;
|
||||
break;
|
||||
default: # ABSOLUTE MODE
|
||||
$num = ord($str[$i]);
|
||||
for ($j=0;$j<$num;$j++){
|
||||
if ($j%2==0){
|
||||
$c = ord($str[++$i]);
|
||||
$pixels[] = ($c & 240)>>4;
|
||||
} else
|
||||
$pixels[] = $c & 15;
|
||||
}
|
||||
if ($num % 2) $i++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$c = ord($str[++$i]);
|
||||
for ($j=0;$j<$o;$j++)
|
||||
$pixels[] = ($j%2==0 ? ($c & 240)>>4 : $c & 15);
|
||||
}
|
||||
}
|
||||
|
||||
$out = '';
|
||||
if (count($pixels)%2) $pixels[]=0;
|
||||
$cnt = count($pixels)/2;
|
||||
for ($i=0;$i<$cnt;$i++)
|
||||
$out .= chr(16*$pixels[2*$i] + $pixels[2*$i+1]);
|
||||
return $out;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,4 +0,0 @@
|
||||
[ViewState]
|
||||
Mode=
|
||||
Vid=
|
||||
FolderType=Documents
|
||||
@ -1,412 +0,0 @@
|
||||
<?php
|
||||
|
||||
class directw {
|
||||
|
||||
var $mpdf = null;
|
||||
|
||||
function directw(&$mpdf) {
|
||||
$this->mpdf = $mpdf;
|
||||
}
|
||||
|
||||
|
||||
function Write($h,$txt,$currentx=0,$link='',$directionality='ltr',$align='') {
|
||||
if (!$align) {
|
||||
if ($directionality=='rtl') { $align = 'R'; }
|
||||
else { $align = 'L'; }
|
||||
}
|
||||
if ($h == 0) { $this->mpdf->SetLineHeight(); $h = $this->mpdf->lineheight; }
|
||||
//Output text in flowing mode
|
||||
$w = $this->mpdf->w - $this->mpdf->rMargin - $this->mpdf->x;
|
||||
|
||||
$wmax = ($w - ($this->mpdf->cMarginL+$this->mpdf->cMarginR));
|
||||
$s=str_replace("\r",'',$txt);
|
||||
if ($this->mpdf->usingCoreFont) { $nb=strlen($s); }
|
||||
else {
|
||||
$nb=mb_strlen($s, $this->mpdf->mb_enc );
|
||||
// handle single space character
|
||||
if(($nb==1) && $s == " ") {
|
||||
$this->mpdf->x += $this->mpdf->GetStringWidth($s);
|
||||
return;
|
||||
}
|
||||
}
|
||||
$sep=-1;
|
||||
$i=0;
|
||||
$j=0;
|
||||
$l=0;
|
||||
$nl=1;
|
||||
if (!$this->mpdf->usingCoreFont) {
|
||||
if (preg_match("/([".$this->mpdf->pregRTLchars."])/u", $txt)) { $this->mpdf->biDirectional = true; } // *RTL*
|
||||
while($i<$nb) {
|
||||
//Get next character
|
||||
$c = mb_substr($s,$i,1,$this->mpdf->mb_enc );
|
||||
if($c == "\n") {
|
||||
// WORD SPACING
|
||||
$this->mpdf->ResetSpacing();
|
||||
//Explicit line break
|
||||
$tmp = rtrim(mb_substr($s,$j,$i-$j,$this->mpdf->mb_enc));
|
||||
$this->mpdf->Cell($w, $h, $tmp, 0, 2, $align, $fill, $link);
|
||||
$i++;
|
||||
$sep = -1;
|
||||
$j = $i;
|
||||
$l = 0;
|
||||
if($nl == 1) {
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
$w = $this->mpdf->w - $this->mpdf->rMargin - $this->mpdf->x;
|
||||
$wmax = ($w - ($this->mpdf->cMarginL+$this->mpdf->cMarginR));
|
||||
}
|
||||
$nl++;
|
||||
continue;
|
||||
}
|
||||
if($c == " ") { $sep= $i; }
|
||||
$l += $this->mpdf->GetCharWidthNonCore($c); // mPDF 5.3.04
|
||||
if($l > $wmax) {
|
||||
//Automatic line break (word wrapping)
|
||||
if($sep == -1) {
|
||||
// WORD SPACING
|
||||
$this->mpdf->ResetSpacing();
|
||||
if($this->mpdf->x > $this->mpdf->lMargin) {
|
||||
//Move to next line
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
$this->mpdf->y+=$h;
|
||||
$w=$this->mpdf->w-$this->mpdf->rMargin-$this->mpdf->x;
|
||||
$wmax = ($w - ($this->mpdf->cMarginL+$this->mpdf->cMarginR));
|
||||
$i++;
|
||||
$nl++;
|
||||
continue;
|
||||
}
|
||||
if($i==$j) { $i++; }
|
||||
$tmp = rtrim(mb_substr($s,$j,$i-$j,$this->mpdf->mb_enc));
|
||||
$this->mpdf->Cell($w, $h, $tmp, 0, 2, $align, $fill, $link);
|
||||
}
|
||||
else {
|
||||
$tmp = rtrim(mb_substr($s,$j,$sep-$j,$this->mpdf->mb_enc));
|
||||
|
||||
if($align=='J') {
|
||||
//////////////////////////////////////////
|
||||
// JUSTIFY J using Unicode fonts (Word spacing doesn't work)
|
||||
// WORD SPACING
|
||||
// Change NON_BREAKING SPACE to spaces so they are 'spaced' properly
|
||||
$tmp = str_replace(chr(194).chr(160),chr(32),$tmp );
|
||||
$len_ligne = $this->mpdf->GetStringWidth($tmp );
|
||||
$nb_carac = mb_strlen( $tmp , $this->mpdf->mb_enc ) ;
|
||||
$nb_spaces = mb_substr_count( $tmp ,' ', $this->mpdf->mb_enc ) ;
|
||||
$inclCursive=false;
|
||||
if (isset($this->mpdf->CurrentFont['useOTL']) && $this->mpdf->CurrentFont['useOTL']) {
|
||||
if (preg_match("/([".$this->mpdf->pregCURSchars."])/u", $tmp)) { $inclCursive = true; }
|
||||
}
|
||||
list($charspacing,$ws) = $this->mpdf->GetJspacing($nb_carac,$nb_spaces,((($w-2) - $len_ligne) * _MPDFK),$inclCursive);
|
||||
$this->mpdf->SetSpacing($charspacing,$ws);
|
||||
//////////////////////////////////////////
|
||||
}
|
||||
$this->mpdf->Cell($w, $h, $tmp, 0, 2, $align, $fill, $link);
|
||||
$i=$sep+1;
|
||||
}
|
||||
$sep = -1;
|
||||
$j = $i;
|
||||
$l = 0;
|
||||
if($nl==1) {
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
$w=$this->mpdf->w-$this->mpdf->rMargin-$this->mpdf->x;
|
||||
$wmax = ($w - ($this->mpdf->cMarginL+$this->mpdf->cMarginR));
|
||||
}
|
||||
$nl++;
|
||||
}
|
||||
else { $i++; }
|
||||
}
|
||||
//Last chunk
|
||||
// WORD SPACING
|
||||
$this->mpdf->ResetSpacing();
|
||||
}
|
||||
else {
|
||||
while($i<$nb) {
|
||||
//Get next character
|
||||
$c=$s[$i];
|
||||
if($c == "\n") {
|
||||
//Explicit line break
|
||||
// WORD SPACING
|
||||
$this->mpdf->ResetSpacing();
|
||||
$this->mpdf->Cell($w, $h, substr($s, $j, $i-$j), 0, 2, $align, $fill, $link);
|
||||
$i++;
|
||||
$sep = -1;
|
||||
$j = $i;
|
||||
$l = 0;
|
||||
if($nl == 1) {
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
$w = $this->mpdf->w - $this->mpdf->rMargin - $this->mpdf->x;
|
||||
$wmax=$w-($this->mpdf->cMarginL+$this->mpdf->cMarginR);
|
||||
}
|
||||
$nl++;
|
||||
continue;
|
||||
}
|
||||
if($c == " ") { $sep= $i; }
|
||||
$l += $this->mpdf->GetCharWidthCore($c); // mPDF 5.3.04
|
||||
if($l > $wmax) {
|
||||
//Automatic line break (word wrapping)
|
||||
if($sep == -1) {
|
||||
// WORD SPACING
|
||||
$this->mpdf->ResetSpacing();
|
||||
if($this->mpdf->x > $this->mpdf->lMargin) {
|
||||
//Move to next line
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
$this->mpdf->y+=$h;
|
||||
$w=$this->mpdf->w-$this->mpdf->rMargin-$this->mpdf->x;
|
||||
$wmax=$w-($this->mpdf->cMarginL+$this->mpdf->cMarginR);
|
||||
$i++;
|
||||
$nl++;
|
||||
continue;
|
||||
}
|
||||
if($i==$j) { $i++; }
|
||||
$this->mpdf->Cell($w, $h, substr($s, $j, $i-$j), 0, 2, $align, $fill, $link);
|
||||
}
|
||||
else {
|
||||
$tmp = substr($s, $j, $sep-$j);
|
||||
if($align=='J') {
|
||||
//////////////////////////////////////////
|
||||
// JUSTIFY J using Unicode fonts
|
||||
// WORD SPACING is not fully supported for complex scripts
|
||||
// Change NON_BREAKING SPACE to spaces so they are 'spaced' properly
|
||||
$tmp = str_replace(chr(160),chr(32),$tmp );
|
||||
$len_ligne = $this->mpdf->GetStringWidth($tmp );
|
||||
$nb_carac = strlen( $tmp ) ;
|
||||
$nb_spaces = substr_count( $tmp ,' ' ) ;
|
||||
list($charspacing,$ws) = $this->mpdf->GetJspacing($nb_carac,$nb_spaces,((($w-2) - $len_ligne) * _MPDFK),$false);
|
||||
$this->mpdf->SetSpacing($charspacing,$ws);
|
||||
//////////////////////////////////////////
|
||||
}
|
||||
$this->mpdf->Cell($w, $h, $tmp, 0, 2, $align, $fill, $link);
|
||||
$i=$sep+1;
|
||||
}
|
||||
$sep = -1;
|
||||
$j = $i;
|
||||
$l = 0;
|
||||
if($nl==1) {
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
$w=$this->mpdf->w-$this->mpdf->rMargin-$this->mpdf->x;
|
||||
$wmax=$w-($this->mpdf->cMarginL+$this->mpdf->cMarginR);
|
||||
}
|
||||
$nl++;
|
||||
}
|
||||
else {
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// WORD SPACING
|
||||
$this->mpdf->ResetSpacing();
|
||||
}
|
||||
//Last chunk
|
||||
if($i!=$j) {
|
||||
if ($currentx != 0) $this->mpdf->x=$currentx;
|
||||
else $this->mpdf->x=$this->mpdf->lMargin;
|
||||
if ($this->mpdf->usingCoreFont) { $tmp = substr($s,$j,$i-$j); }
|
||||
else { $tmp = mb_substr($s,$j,$i-$j,$this->mpdf->mb_enc); }
|
||||
$this->mpdf->Cell($w,$h,$tmp,0,0,$align,$fill,$link);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function CircularText($x, $y, $r, $text, $align='top', $fontfamily='', $fontsizePt=0, $fontstyle='', $kerning=120, $fontwidth=100, $divider='') {
|
||||
if ($fontfamily || $fontstyle || $fontsizePt) $this->mpdf->SetFont($fontfamily,$fontstyle,$fontsizePt);
|
||||
$kerning/=100;
|
||||
$fontwidth/=100;
|
||||
if($kerning==0) $this->mpdf->Error('Please use values unequal to zero for kerning (CircularText)');
|
||||
if($fontwidth==0) $this->mpdf->Error('Please use values unequal to zero for font width (CircularText)');
|
||||
$text=str_replace("\r",'',$text);
|
||||
//circumference
|
||||
$u=($r*2)*M_PI;
|
||||
$checking = true;
|
||||
$autoset = false;
|
||||
while($checking) {
|
||||
$t=0;
|
||||
$w = array();
|
||||
if ($this->mpdf->usingCoreFont) {
|
||||
$nb=strlen($text);
|
||||
for($i=0; $i<$nb; $i++){
|
||||
$w[$i]=$this->mpdf->GetStringWidth($text[$i]);
|
||||
$w[$i]*=$kerning*$fontwidth;
|
||||
$t+=$w[$i];
|
||||
}
|
||||
}
|
||||
else {
|
||||
$nb=mb_strlen($text, $this->mpdf->mb_enc );
|
||||
$lastchar = '';
|
||||
$unicode = $this->mpdf->UTF8StringToArray($text);
|
||||
for($i=0; $i<$nb; $i++){
|
||||
$c = mb_substr($text,$i,1,$this->mpdf->mb_enc );
|
||||
$w[$i]=$this->mpdf->GetStringWidth($c);
|
||||
$w[$i]*=$kerning*$fontwidth;
|
||||
$char = $unicode[$i];
|
||||
if ($this->mpdf->useKerning && $lastchar) {
|
||||
if (isset($this->mpdf->CurrentFont['kerninfo'][$lastchar][$char])) {
|
||||
$tk = $this->mpdf->CurrentFont['kerninfo'][$lastchar][$char] * ($this->mpdf->FontSize/ 1000) * $kerning * $fontwidth;
|
||||
$w[$i] += $tk/2;
|
||||
$w[$i-1] += $tk/2;
|
||||
$t+=$tk;
|
||||
}
|
||||
}
|
||||
$lastchar = $char;
|
||||
$t+=$w[$i];
|
||||
}
|
||||
}
|
||||
if ($fontsizePt>=0 || $autoset) { $checking = false; }
|
||||
else {
|
||||
$t+=$this->mpdf->GetStringWidth(' ');
|
||||
if ($divider)
|
||||
$t+=$this->mpdf->GetStringWidth(' ');
|
||||
if ($fontsizePt==-2)
|
||||
$fontsizePt = $this->mpdf->FontSizePt * 0.5 * $u/$t;
|
||||
else
|
||||
$fontsizePt = $this->mpdf->FontSizePt * $u/$t;
|
||||
$this->mpdf->SetFontSize($fontsizePt);
|
||||
$autoset = true;
|
||||
}
|
||||
}
|
||||
|
||||
//total width of string in degrees
|
||||
$d=($t/$u)*360;
|
||||
|
||||
$this->mpdf->StartTransform();
|
||||
// rotate matrix for the first letter to center the text
|
||||
// (half of total degrees)
|
||||
if($align=='top'){
|
||||
$this->mpdf->transformRotate(-$d/2, $x, $y);
|
||||
}
|
||||
else{
|
||||
$this->mpdf->transformRotate($d/2, $x, $y);
|
||||
}
|
||||
//run through the string
|
||||
for($i=0; $i<$nb; $i++){
|
||||
if($align=='top'){
|
||||
//rotate matrix half of the width of current letter + half of the width of preceding letter
|
||||
if($i==0){
|
||||
$this->mpdf->transformRotate((($w[$i]/2)/$u)*360, $x, $y);
|
||||
}
|
||||
else{
|
||||
$this->mpdf->transformRotate((($w[$i]/2+$w[$i-1]/2)/$u)*360, $x, $y);
|
||||
}
|
||||
if($fontwidth!=1){
|
||||
$this->mpdf->StartTransform();
|
||||
$this->mpdf->transformScale($fontwidth*100, 100, $x, $y);
|
||||
}
|
||||
$this->mpdf->SetXY($x-$w[$i]/2, $y-$r);
|
||||
}
|
||||
else{
|
||||
//rotate matrix half of the width of current letter + half of the width of preceding letter
|
||||
if($i==0){
|
||||
$this->mpdf->transformRotate(-(($w[$i]/2)/$u)*360, $x, $y);
|
||||
}
|
||||
else{
|
||||
$this->mpdf->transformRotate(-(($w[$i]/2+$w[$i-1]/2)/$u)*360, $x, $y);
|
||||
}
|
||||
if($fontwidth!=1){
|
||||
$this->mpdf->StartTransform();
|
||||
$this->mpdf->transformScale($fontwidth*100, 100, $x, $y);
|
||||
}
|
||||
$this->mpdf->SetXY($x-$w[$i]/2, $y+$r-($this->mpdf->FontSize));
|
||||
}
|
||||
if ($this->mpdf->usingCoreFont) { $c=$text[$i]; }
|
||||
else { $c = mb_substr($text,$i,1,$this->mpdf->mb_enc ); }
|
||||
$this->mpdf->Cell(($w[$i]),$this->mpdf->FontSize,$c,0,0,'C'); // mPDF 5.3.53
|
||||
if($fontwidth!=1){
|
||||
$this->mpdf->StopTransform();
|
||||
}
|
||||
}
|
||||
$this->mpdf->StopTransform();
|
||||
|
||||
// mPDF 5.5.23
|
||||
if($align=='top' && $divider!=''){
|
||||
$wc=$this->mpdf->GetStringWidth($divider);
|
||||
$wc*=$kerning*$fontwidth;
|
||||
|
||||
$this->mpdf->StartTransform();
|
||||
$this->mpdf->transformRotate(90, $x, $y);
|
||||
$this->mpdf->SetXY($x-$wc/2, $y-$r);
|
||||
$this->mpdf->Cell(($wc),$this->mpdf->FontSize,$divider,0,0,'C');
|
||||
$this->mpdf->StopTransform();
|
||||
|
||||
$this->mpdf->StartTransform();
|
||||
$this->mpdf->transformRotate(-90, $x, $y);
|
||||
$this->mpdf->SetXY($x-$wc/2, $y-$r);
|
||||
$this->mpdf->Cell(($wc),$this->mpdf->FontSize,$divider,0,0,'C');
|
||||
$this->mpdf->StopTransform();
|
||||
}
|
||||
}
|
||||
|
||||
function Shaded_box( $text,$font='',$fontstyle='B',$szfont='',$width='70%',$style='DF',$radius=2.5,$fill='#FFFFFF',$color='#000000',$pad=2 ) {
|
||||
// F (shading - no line),S (line, no shading),DF (both)
|
||||
if (!$font) { $font= $this->mpdf->default_font; }
|
||||
if (!$szfont) { $szfont = ($this->mpdf->default_font_size * 1.8); }
|
||||
|
||||
$text = ' '.$text.' ';
|
||||
$this->mpdf->SetFont( $font, $fontstyle, $szfont, false );
|
||||
|
||||
$text = $this->mpdf->purify_utf8_text($text);
|
||||
if ($this->mpdf->text_input_as_HTML) {
|
||||
$text = $this->mpdf->all_entities_to_utf8($text);
|
||||
}
|
||||
if ($this->mpdf->usingCoreFont) { $text = mb_convert_encoding($text,$this->mpdf->mb_enc,'UTF-8'); }
|
||||
|
||||
|
||||
// DIRECTIONALITY
|
||||
if (preg_match("/([".$this->mpdf->pregRTLchars."])/u", $text)) { $this->mpdf->biDirectional = true; } // *RTL*
|
||||
|
||||
$textvar = 0;
|
||||
$save_OTLtags = $this->mpdf->OTLtags;
|
||||
$this->mpdf->OTLtags = array();
|
||||
if ($this->mpdf->useKerning) {
|
||||
if ($this->mpdf->CurrentFont['haskernGPOS']) { $this->mpdf->OTLtags['Plus'] .= ' kern'; }
|
||||
else { $textvar = ($textvar | FC_KERNING); }
|
||||
}
|
||||
// Use OTL OpenType Table Layout - GSUB & GPOS
|
||||
if (isset($this->mpdf->CurrentFont['useOTL']) && $this->mpdf->CurrentFont['useOTL']) {
|
||||
$text = $this->mpdf->otl->applyOTL($text, $this->mpdf->CurrentFont['useOTL']);
|
||||
$OTLdata = $this->mpdf->otl->OTLdata;
|
||||
}
|
||||
$this->mpdf->OTLtags = $save_OTLtags ;
|
||||
|
||||
$this->mpdf->magic_reverse_dir($text, $this->mpdf->directionality, $OTLdata);
|
||||
|
||||
if (!$width) { $width = $this->mpdf->pgwidth; } else { $width=$this->mpdf->ConvertSize($width,$this->mpdf->pgwidth); }
|
||||
$midpt = $this->mpdf->lMargin+($this->mpdf->pgwidth/2);
|
||||
$r1 = $midpt-($width/2); //($this->mpdf->w / 2) - 40;
|
||||
$r2 = $r1 + $width; //$r1 + 80;
|
||||
$y1 = $this->mpdf->y;
|
||||
|
||||
|
||||
$mid = ($r1 + $r2 ) / 2;
|
||||
$loop = 0;
|
||||
|
||||
while ( $loop == 0 )
|
||||
{
|
||||
$this->mpdf->SetFont( $font, $fontstyle, $szfont, false );
|
||||
$sz = $this->mpdf->GetStringWidth( $text, true, $OTLdata, $textvar );
|
||||
if ( ($r1+$sz) > $r2 )
|
||||
$szfont --;
|
||||
else
|
||||
$loop ++;
|
||||
}
|
||||
$this->mpdf->SetFont( $font, $fontstyle, $szfont, true, true );
|
||||
|
||||
$y2 = $this->mpdf->FontSize+($pad*2);
|
||||
|
||||
$this->mpdf->SetLineWidth(0.1);
|
||||
$fc = $this->mpdf->ConvertColor($fill);
|
||||
$tc = $this->mpdf->ConvertColor($color);
|
||||
$this->mpdf->SetFColor($fc);
|
||||
$this->mpdf->SetTColor($tc);
|
||||
$this->mpdf->RoundedRect($r1, $y1, ($r2 - $r1), $y2, $radius, $style);
|
||||
$this->mpdf->SetX( $r1);
|
||||
$this->mpdf->Cell($r2-$r1, $y2, $text, 0, 1, "C",0,'',0,0,0,'M', 0, false, $OTLdata, $textvar );
|
||||
$this->mpdf->SetY($y1+$y2+2); // +2 = mm margin below shaded box
|
||||
$this->mpdf->Reset();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,700 +0,0 @@
|
||||
<?php
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// 2009-12-22 Adapted for mPDF 4.2
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// GIF Util - (C) 2003 Yamasoft (S/C)
|
||||
// http://www.yamasoft.com
|
||||
// All Rights Reserved
|
||||
// This file can be freely copied, distributed, modified, updated by anyone under the only
|
||||
// condition to leave the original address (Yamasoft, http://www.yamasoft.com) and this header.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// 2009-12-22 Adapted INB
|
||||
// Functions calling functionname($x, $len = 0) were not working on PHP5.1.5 as pass by reference
|
||||
// All edited to $len = 0; then call function.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CGIFLZW
|
||||
{
|
||||
var $MAX_LZW_BITS;
|
||||
var $Fresh, $CodeSize, $SetCodeSize, $MaxCode, $MaxCodeSize, $FirstCode, $OldCode;
|
||||
var $ClearCode, $EndCode, $Next, $Vals, $Stack, $sp, $Buf, $CurBit, $LastBit, $Done, $LastByte;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// CONSTRUCTOR
|
||||
function CGIFLZW()
|
||||
{
|
||||
$this->MAX_LZW_BITS = 12;
|
||||
unSet($this->Next);
|
||||
unSet($this->Vals);
|
||||
unSet($this->Stack);
|
||||
unSet($this->Buf);
|
||||
|
||||
$this->Next = range(0, (1 << $this->MAX_LZW_BITS) - 1);
|
||||
$this->Vals = range(0, (1 << $this->MAX_LZW_BITS) - 1);
|
||||
$this->Stack = range(0, (1 << ($this->MAX_LZW_BITS + 1)) - 1);
|
||||
$this->Buf = range(0, 279);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function deCompress($data, &$datLen)
|
||||
{
|
||||
$stLen = strlen($data);
|
||||
$datLen = 0;
|
||||
$ret = "";
|
||||
$dp = 0; // data pointer
|
||||
|
||||
// INITIALIZATION
|
||||
$this->LZWCommandInit($data, $dp);
|
||||
|
||||
while(($iIndex = $this->LZWCommand($data, $dp)) >= 0) {
|
||||
$ret .= chr($iIndex);
|
||||
}
|
||||
|
||||
$datLen = $dp;
|
||||
|
||||
if($iIndex != -2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
function LZWCommandInit(&$data, &$dp)
|
||||
{
|
||||
$this->SetCodeSize = ord($data[0]);
|
||||
$dp += 1;
|
||||
|
||||
$this->CodeSize = $this->SetCodeSize + 1;
|
||||
$this->ClearCode = 1 << $this->SetCodeSize;
|
||||
$this->EndCode = $this->ClearCode + 1;
|
||||
$this->MaxCode = $this->ClearCode + 2;
|
||||
$this->MaxCodeSize = $this->ClearCode << 1;
|
||||
|
||||
$this->GetCodeInit($data, $dp);
|
||||
|
||||
$this->Fresh = 1;
|
||||
for($i = 0; $i < $this->ClearCode; $i++) {
|
||||
$this->Next[$i] = 0;
|
||||
$this->Vals[$i] = $i;
|
||||
}
|
||||
|
||||
for(; $i < (1 << $this->MAX_LZW_BITS); $i++) {
|
||||
$this->Next[$i] = 0;
|
||||
$this->Vals[$i] = 0;
|
||||
}
|
||||
|
||||
$this->sp = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
function LZWCommand(&$data, &$dp)
|
||||
{
|
||||
if($this->Fresh) {
|
||||
$this->Fresh = 0;
|
||||
do {
|
||||
$this->FirstCode = $this->GetCode($data, $dp);
|
||||
$this->OldCode = $this->FirstCode;
|
||||
}
|
||||
while($this->FirstCode == $this->ClearCode);
|
||||
|
||||
return $this->FirstCode;
|
||||
}
|
||||
|
||||
if($this->sp > 0) {
|
||||
$this->sp--;
|
||||
return $this->Stack[$this->sp];
|
||||
}
|
||||
|
||||
while(($Code = $this->GetCode($data, $dp)) >= 0) {
|
||||
if($Code == $this->ClearCode) {
|
||||
for($i = 0; $i < $this->ClearCode; $i++) {
|
||||
$this->Next[$i] = 0;
|
||||
$this->Vals[$i] = $i;
|
||||
}
|
||||
|
||||
for(; $i < (1 << $this->MAX_LZW_BITS); $i++) {
|
||||
$this->Next[$i] = 0;
|
||||
$this->Vals[$i] = 0;
|
||||
}
|
||||
|
||||
$this->CodeSize = $this->SetCodeSize + 1;
|
||||
$this->MaxCodeSize = $this->ClearCode << 1;
|
||||
$this->MaxCode = $this->ClearCode + 2;
|
||||
$this->sp = 0;
|
||||
$this->FirstCode = $this->GetCode($data, $dp);
|
||||
$this->OldCode = $this->FirstCode;
|
||||
|
||||
return $this->FirstCode;
|
||||
}
|
||||
|
||||
if($Code == $this->EndCode) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
$InCode = $Code;
|
||||
if($Code >= $this->MaxCode) {
|
||||
$this->Stack[$this->sp++] = $this->FirstCode;
|
||||
$Code = $this->OldCode;
|
||||
}
|
||||
|
||||
while($Code >= $this->ClearCode) {
|
||||
$this->Stack[$this->sp++] = $this->Vals[$Code];
|
||||
|
||||
if($Code == $this->Next[$Code]) // Circular table entry, big GIF Error!
|
||||
return -1;
|
||||
|
||||
$Code = $this->Next[$Code];
|
||||
}
|
||||
|
||||
$this->FirstCode = $this->Vals[$Code];
|
||||
$this->Stack[$this->sp++] = $this->FirstCode;
|
||||
|
||||
if(($Code = $this->MaxCode) < (1 << $this->MAX_LZW_BITS)) {
|
||||
$this->Next[$Code] = $this->OldCode;
|
||||
$this->Vals[$Code] = $this->FirstCode;
|
||||
$this->MaxCode++;
|
||||
|
||||
if(($this->MaxCode >= $this->MaxCodeSize) && ($this->MaxCodeSize < (1 << $this->MAX_LZW_BITS))) {
|
||||
$this->MaxCodeSize *= 2;
|
||||
$this->CodeSize++;
|
||||
}
|
||||
}
|
||||
|
||||
$this->OldCode = $InCode;
|
||||
if($this->sp > 0) {
|
||||
$this->sp--;
|
||||
return $this->Stack[$this->sp];
|
||||
}
|
||||
}
|
||||
|
||||
return $Code;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function GetCodeInit(&$data, &$dp)
|
||||
{
|
||||
$this->CurBit = 0;
|
||||
$this->LastBit = 0;
|
||||
$this->Done = 0;
|
||||
$this->LastByte = 2;
|
||||
return 1;
|
||||
}
|
||||
|
||||
function GetCode(&$data, &$dp)
|
||||
{
|
||||
if(($this->CurBit + $this->CodeSize) >= $this->LastBit) {
|
||||
if($this->Done) {
|
||||
if($this->CurBit >= $this->LastBit) {
|
||||
// Ran off the end of my bits
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
$this->Buf[0] = $this->Buf[$this->LastByte - 2];
|
||||
$this->Buf[1] = $this->Buf[$this->LastByte - 1];
|
||||
|
||||
$Count = ord($data[$dp]);
|
||||
$dp += 1;
|
||||
|
||||
if($Count) {
|
||||
for($i = 0; $i < $Count; $i++) {
|
||||
$this->Buf[2 + $i] = ord($data[$dp+$i]);
|
||||
}
|
||||
$dp += $Count;
|
||||
}
|
||||
else {
|
||||
$this->Done = 1;
|
||||
}
|
||||
|
||||
$this->LastByte = 2 + $Count;
|
||||
$this->CurBit = ($this->CurBit - $this->LastBit) + 16;
|
||||
$this->LastBit = (2 + $Count) << 3;
|
||||
}
|
||||
|
||||
$iRet = 0;
|
||||
for($i = $this->CurBit, $j = 0; $j < $this->CodeSize; $i++, $j++) {
|
||||
$iRet |= (($this->Buf[intval($i / 8)] & (1 << ($i % 8))) != 0) << $j;
|
||||
}
|
||||
|
||||
$this->CurBit += $this->CodeSize;
|
||||
return $iRet;
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CGIFCOLORTABLE
|
||||
{
|
||||
var $m_nColors;
|
||||
var $m_arColors;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// CONSTRUCTOR
|
||||
function CGIFCOLORTABLE()
|
||||
{
|
||||
unSet($this->m_nColors);
|
||||
unSet($this->m_arColors);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function load($lpData, $num)
|
||||
{
|
||||
$this->m_nColors = 0;
|
||||
$this->m_arColors = array();
|
||||
|
||||
for($i = 0; $i < $num; $i++) {
|
||||
$rgb = substr($lpData, $i * 3, 3);
|
||||
if(strlen($rgb) < 3) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->m_arColors[] = (ord($rgb[2]) << 16) + (ord($rgb[1]) << 8) + ord($rgb[0]);
|
||||
$this->m_nColors++;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function toString()
|
||||
{
|
||||
$ret = "";
|
||||
|
||||
for($i = 0; $i < $this->m_nColors; $i++) {
|
||||
$ret .=
|
||||
chr(($this->m_arColors[$i] & 0x000000FF)) . // R
|
||||
chr(($this->m_arColors[$i] & 0x0000FF00) >> 8) . // G
|
||||
chr(($this->m_arColors[$i] & 0x00FF0000) >> 16); // B
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function colorIndex($rgb)
|
||||
{
|
||||
$rgb = intval($rgb) & 0xFFFFFF;
|
||||
$r1 = ($rgb & 0x0000FF);
|
||||
$g1 = ($rgb & 0x00FF00) >> 8;
|
||||
$b1 = ($rgb & 0xFF0000) >> 16;
|
||||
$idx = -1;
|
||||
|
||||
for($i = 0; $i < $this->m_nColors; $i++) {
|
||||
$r2 = ($this->m_arColors[$i] & 0x000000FF);
|
||||
$g2 = ($this->m_arColors[$i] & 0x0000FF00) >> 8;
|
||||
$b2 = ($this->m_arColors[$i] & 0x00FF0000) >> 16;
|
||||
$d = abs($r2 - $r1) + abs($g2 - $g1) + abs($b2 - $b1);
|
||||
|
||||
if(($idx == -1) || ($d < $dif)) {
|
||||
$idx = $i;
|
||||
$dif = $d;
|
||||
}
|
||||
}
|
||||
|
||||
return $idx;
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CGIFFILEHEADER
|
||||
{
|
||||
var $m_lpVer;
|
||||
var $m_nWidth;
|
||||
var $m_nHeight;
|
||||
var $m_bGlobalClr;
|
||||
var $m_nColorRes;
|
||||
var $m_bSorted;
|
||||
var $m_nTableSize;
|
||||
var $m_nBgColor;
|
||||
var $m_nPixelRatio;
|
||||
var $m_colorTable;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// CONSTRUCTOR
|
||||
function CGIFFILEHEADER()
|
||||
{
|
||||
unSet($this->m_lpVer);
|
||||
unSet($this->m_nWidth);
|
||||
unSet($this->m_nHeight);
|
||||
unSet($this->m_bGlobalClr);
|
||||
unSet($this->m_nColorRes);
|
||||
unSet($this->m_bSorted);
|
||||
unSet($this->m_nTableSize);
|
||||
unSet($this->m_nBgColor);
|
||||
unSet($this->m_nPixelRatio);
|
||||
unSet($this->m_colorTable);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function load($lpData, &$hdrLen)
|
||||
{
|
||||
$hdrLen = 0;
|
||||
|
||||
$this->m_lpVer = substr($lpData, 0, 6);
|
||||
if(($this->m_lpVer <> "GIF87a") && ($this->m_lpVer <> "GIF89a")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->m_nWidth = $this->w2i(substr($lpData, 6, 2));
|
||||
$this->m_nHeight = $this->w2i(substr($lpData, 8, 2));
|
||||
if(!$this->m_nWidth || !$this->m_nHeight) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$b = ord(substr($lpData, 10, 1));
|
||||
$this->m_bGlobalClr = ($b & 0x80) ? true : false;
|
||||
$this->m_nColorRes = ($b & 0x70) >> 4;
|
||||
$this->m_bSorted = ($b & 0x08) ? true : false;
|
||||
$this->m_nTableSize = 2 << ($b & 0x07);
|
||||
$this->m_nBgColor = ord(substr($lpData, 11, 1));
|
||||
$this->m_nPixelRatio = ord(substr($lpData, 12, 1));
|
||||
$hdrLen = 13;
|
||||
|
||||
if($this->m_bGlobalClr) {
|
||||
$this->m_colorTable = new CGIFCOLORTABLE();
|
||||
if(!$this->m_colorTable->load(substr($lpData, $hdrLen), $this->m_nTableSize)) {
|
||||
return false;
|
||||
}
|
||||
$hdrLen += 3 * $this->m_nTableSize;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function w2i($str)
|
||||
{
|
||||
return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CGIFIMAGEHEADER
|
||||
{
|
||||
var $m_nLeft;
|
||||
var $m_nTop;
|
||||
var $m_nWidth;
|
||||
var $m_nHeight;
|
||||
var $m_bLocalClr;
|
||||
var $m_bInterlace;
|
||||
var $m_bSorted;
|
||||
var $m_nTableSize;
|
||||
var $m_colorTable;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// CONSTRUCTOR
|
||||
function CGIFIMAGEHEADER()
|
||||
{
|
||||
unSet($this->m_nLeft);
|
||||
unSet($this->m_nTop);
|
||||
unSet($this->m_nWidth);
|
||||
unSet($this->m_nHeight);
|
||||
unSet($this->m_bLocalClr);
|
||||
unSet($this->m_bInterlace);
|
||||
unSet($this->m_bSorted);
|
||||
unSet($this->m_nTableSize);
|
||||
unSet($this->m_colorTable);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function load($lpData, &$hdrLen)
|
||||
{
|
||||
$hdrLen = 0;
|
||||
|
||||
$this->m_nLeft = $this->w2i(substr($lpData, 0, 2));
|
||||
$this->m_nTop = $this->w2i(substr($lpData, 2, 2));
|
||||
$this->m_nWidth = $this->w2i(substr($lpData, 4, 2));
|
||||
$this->m_nHeight = $this->w2i(substr($lpData, 6, 2));
|
||||
|
||||
if(!$this->m_nWidth || !$this->m_nHeight) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$b = ord($lpData{8});
|
||||
$this->m_bLocalClr = ($b & 0x80) ? true : false;
|
||||
$this->m_bInterlace = ($b & 0x40) ? true : false;
|
||||
$this->m_bSorted = ($b & 0x20) ? true : false;
|
||||
$this->m_nTableSize = 2 << ($b & 0x07);
|
||||
$hdrLen = 9;
|
||||
|
||||
if($this->m_bLocalClr) {
|
||||
$this->m_colorTable = new CGIFCOLORTABLE();
|
||||
if(!$this->m_colorTable->load(substr($lpData, $hdrLen), $this->m_nTableSize)) {
|
||||
return false;
|
||||
}
|
||||
$hdrLen += 3 * $this->m_nTableSize;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function w2i($str)
|
||||
{
|
||||
return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CGIFIMAGE
|
||||
{
|
||||
var $m_disp;
|
||||
var $m_bUser;
|
||||
var $m_bTrans;
|
||||
var $m_nDelay;
|
||||
var $m_nTrans;
|
||||
var $m_lpComm;
|
||||
var $m_gih;
|
||||
var $m_data;
|
||||
var $m_lzw;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function CGIFIMAGE()
|
||||
{
|
||||
unSet($this->m_disp);
|
||||
unSet($this->m_bUser);
|
||||
unSet($this->m_bTrans);
|
||||
unSet($this->m_nDelay);
|
||||
unSet($this->m_nTrans);
|
||||
unSet($this->m_lpComm);
|
||||
unSet($this->m_data);
|
||||
$this->m_gih = new CGIFIMAGEHEADER();
|
||||
$this->m_lzw = new CGIFLZW();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function load($data, &$datLen)
|
||||
{
|
||||
$datLen = 0;
|
||||
|
||||
while(true) {
|
||||
$b = ord($data[0]);
|
||||
$data = substr($data, 1);
|
||||
$datLen++;
|
||||
|
||||
switch($b) {
|
||||
case 0x21: // Extension
|
||||
$len = 0;
|
||||
if(!$this->skipExt($data, $len)) {
|
||||
return false;
|
||||
}
|
||||
$datLen += $len;
|
||||
break;
|
||||
|
||||
case 0x2C: // Image
|
||||
// LOAD HEADER & COLOR TABLE
|
||||
$len = 0;
|
||||
if(!$this->m_gih->load($data, $len)) {
|
||||
return false;
|
||||
}
|
||||
$data = substr($data, $len);
|
||||
$datLen += $len;
|
||||
|
||||
// ALLOC BUFFER
|
||||
$len = 0;
|
||||
|
||||
if(!($this->m_data = $this->m_lzw->deCompress($data, $len))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$data = substr($data, $len);
|
||||
$datLen += $len;
|
||||
|
||||
if($this->m_gih->m_bInterlace) {
|
||||
$this->deInterlace();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
case 0x3B: // EOF
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function skipExt(&$data, &$extLen)
|
||||
{
|
||||
$extLen = 0;
|
||||
|
||||
$b = ord($data[0]);
|
||||
$data = substr($data, 1);
|
||||
$extLen++;
|
||||
|
||||
switch($b) {
|
||||
case 0xF9: // Graphic Control
|
||||
$b = ord($data[1]);
|
||||
$this->m_disp = ($b & 0x1C) >> 2;
|
||||
$this->m_bUser = ($b & 0x02) ? true : false;
|
||||
$this->m_bTrans = ($b & 0x01) ? true : false;
|
||||
$this->m_nDelay = $this->w2i(substr($data, 2, 2));
|
||||
$this->m_nTrans = ord($data[4]);
|
||||
break;
|
||||
|
||||
case 0xFE: // Comment
|
||||
$this->m_lpComm = substr($data, 1, ord($data[0]));
|
||||
break;
|
||||
|
||||
case 0x01: // Plain text
|
||||
break;
|
||||
|
||||
case 0xFF: // Application
|
||||
break;
|
||||
}
|
||||
|
||||
// SKIP DEFAULT AS DEFS MAY CHANGE
|
||||
$b = ord($data[0]);
|
||||
$data = substr($data, 1);
|
||||
$extLen++;
|
||||
while($b > 0) {
|
||||
$data = substr($data, $b);
|
||||
$extLen += $b;
|
||||
$b = ord($data[0]);
|
||||
$data = substr($data, 1);
|
||||
$extLen++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function w2i($str)
|
||||
{
|
||||
return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function deInterlace()
|
||||
{
|
||||
$data = $this->m_data;
|
||||
|
||||
for($i = 0; $i < 4; $i++) {
|
||||
switch($i) {
|
||||
case 0:
|
||||
$s = 8;
|
||||
$y = 0;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
$s = 8;
|
||||
$y = 4;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
$s = 4;
|
||||
$y = 2;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
$s = 2;
|
||||
$y = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
for(; $y < $this->m_gih->m_nHeight; $y += $s) {
|
||||
$lne = substr($this->m_data, 0, $this->m_gih->m_nWidth);
|
||||
$this->m_data = substr($this->m_data, $this->m_gih->m_nWidth);
|
||||
|
||||
$data =
|
||||
substr($data, 0, $y * $this->m_gih->m_nWidth) .
|
||||
$lne .
|
||||
substr($data, ($y + 1) * $this->m_gih->m_nWidth);
|
||||
}
|
||||
}
|
||||
|
||||
$this->m_data = $data;
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CGIF
|
||||
{
|
||||
var $m_gfh;
|
||||
var $m_lpData;
|
||||
var $m_img;
|
||||
var $m_bLoaded;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// CONSTRUCTOR
|
||||
function CGIF()
|
||||
{
|
||||
$this->m_gfh = new CGIFFILEHEADER();
|
||||
$this->m_img = new CGIFIMAGE();
|
||||
$this->m_lpData = "";
|
||||
$this->m_bLoaded = false;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
function ClearData() {
|
||||
$this->m_lpData = '';
|
||||
unSet($this->m_img->m_data);
|
||||
unSet($this->m_img->m_lzw->Next);
|
||||
unSet($this->m_img->m_lzw->Vals);
|
||||
unSet($this->m_img->m_lzw->Stack);
|
||||
unSet($this->m_img->m_lzw->Buf);
|
||||
}
|
||||
|
||||
function loadFile(&$data, $iIndex)
|
||||
{
|
||||
if($iIndex < 0) {
|
||||
return false;
|
||||
}
|
||||
$this->m_lpData = $data;
|
||||
|
||||
// GET FILE HEADER
|
||||
$len = 0;
|
||||
if(!$this->m_gfh->load($this->m_lpData, $len)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->m_lpData = substr($this->m_lpData, $len);
|
||||
|
||||
do {
|
||||
$imgLen = 0;
|
||||
if(!$this->m_img->load($this->m_lpData, $imgLen)) {
|
||||
return false;
|
||||
}
|
||||
$this->m_lpData = substr($this->m_lpData, $imgLen);
|
||||
}
|
||||
while($iIndex-- > 0);
|
||||
|
||||
$this->m_bLoaded = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
?>
|
||||
@ -1,724 +0,0 @@
|
||||
<?php
|
||||
|
||||
class grad {
|
||||
|
||||
var $mpdf = null;
|
||||
|
||||
function grad(&$mpdf) {
|
||||
$this->mpdf = $mpdf;
|
||||
}
|
||||
|
||||
// mPDF 5.3.A1
|
||||
function CoonsPatchMesh($x, $y, $w, $h, $patch_array=array(), $x_min=0, $x_max=1, $y_min=0, $y_max=1, $colspace='RGB', $return=false){
|
||||
$s=' q ';
|
||||
$s.=sprintf(' %.3F %.3F %.3F %.3F re W n ', $x*_MPDFK, ($this->mpdf->h-$y)*_MPDFK, $w*_MPDFK, -$h*_MPDFK);
|
||||
$s.=sprintf(' %.3F 0 0 %.3F %.3F %.3F cm ', $w*_MPDFK, $h*_MPDFK, $x*_MPDFK, ($this->mpdf->h-($y+$h))*_MPDFK);
|
||||
$n = count($this->mpdf->gradients)+1;
|
||||
$this->mpdf->gradients[$n]['type'] = 6; //coons patch mesh
|
||||
$this->mpdf->gradients[$n]['colorspace'] = $colspace; //coons patch mesh
|
||||
$bpcd=65535; //16 BitsPerCoordinate
|
||||
$trans = false;
|
||||
$this->mpdf->gradients[$n]['stream']='';
|
||||
for($i=0;$i<count($patch_array);$i++){
|
||||
$this->mpdf->gradients[$n]['stream'].=chr($patch_array[$i]['f']); //start with the edge flag as 8 bit
|
||||
for($j=0;$j<count($patch_array[$i]['points']);$j++){
|
||||
//each point as 16 bit
|
||||
if (($j % 2) == 1) { // Y coordinate (adjusted as input is From top left)
|
||||
$patch_array[$i]['points'][$j]=(($patch_array[$i]['points'][$j]-$y_min)/($y_max-$y_min))*$bpcd;
|
||||
$patch_array[$i]['points'][$j]=$bpcd-$patch_array[$i]['points'][$j];
|
||||
}
|
||||
else {
|
||||
$patch_array[$i]['points'][$j]=(($patch_array[$i]['points'][$j]-$x_min)/($x_max-$x_min))*$bpcd;
|
||||
}
|
||||
if($patch_array[$i]['points'][$j]<0) $patch_array[$i]['points'][$j]=0;
|
||||
if($patch_array[$i]['points'][$j]>$bpcd) $patch_array[$i]['points'][$j]=$bpcd;
|
||||
$this->mpdf->gradients[$n]['stream'].=chr(floor($patch_array[$i]['points'][$j]/256));
|
||||
$this->mpdf->gradients[$n]['stream'].=chr(floor($patch_array[$i]['points'][$j]%256));
|
||||
}
|
||||
for($j=0;$j<count($patch_array[$i]['colors']);$j++){
|
||||
//each color component as 8 bit
|
||||
if ($colspace=='RGB') {
|
||||
$this->mpdf->gradients[$n]['stream'].=($patch_array[$i]['colors'][$j][1]);
|
||||
$this->mpdf->gradients[$n]['stream'].=($patch_array[$i]['colors'][$j][2]);
|
||||
$this->mpdf->gradients[$n]['stream'].=($patch_array[$i]['colors'][$j][3]);
|
||||
if (isset($patch_array[$i]['colors'][$j][4]) && ord($patch_array[$i]['colors'][$j][4])<100) { $trans = true; }
|
||||
}
|
||||
else if ($colspace=='CMYK') {
|
||||
$this->mpdf->gradients[$n]['stream'].=chr(ord($patch_array[$i]['colors'][$j][1])*2.55);
|
||||
$this->mpdf->gradients[$n]['stream'].=chr(ord($patch_array[$i]['colors'][$j][2])*2.55);
|
||||
$this->mpdf->gradients[$n]['stream'].=chr(ord($patch_array[$i]['colors'][$j][3])*2.55);
|
||||
$this->mpdf->gradients[$n]['stream'].=chr(ord($patch_array[$i]['colors'][$j][4])*2.55);
|
||||
if (isset($patch_array[$i]['colors'][$j][5]) && ord($patch_array[$i]['colors'][$j][5])<100) { $trans = true; }
|
||||
}
|
||||
else if ($colspace=='Gray') {
|
||||
$this->mpdf->gradients[$n]['stream'].=($patch_array[$i]['colors'][$j][1]);
|
||||
if ($patch_array[$i]['colors'][$j][2]==1) { $trans = true; } // transparency converted from rgba or cmyka()
|
||||
}
|
||||
}
|
||||
}
|
||||
// TRANSPARENCY
|
||||
if ($trans) {
|
||||
$this->mpdf->gradients[$n]['stream_trans']='';
|
||||
for($i=0;$i<count($patch_array);$i++){
|
||||
$this->mpdf->gradients[$n]['stream_trans'].=chr($patch_array[$i]['f']);
|
||||
for($j=0;$j<count($patch_array[$i]['points']);$j++){
|
||||
//each point as 16 bit
|
||||
$this->mpdf->gradients[$n]['stream_trans'].=chr(floor($patch_array[$i]['points'][$j]/256));
|
||||
$this->mpdf->gradients[$n]['stream_trans'].=chr(floor($patch_array[$i]['points'][$j]%256));
|
||||
}
|
||||
for($j=0;$j<count($patch_array[$i]['colors']);$j++){
|
||||
//each color component as 8 bit // OPACITY
|
||||
if ($colspace=='RGB') {
|
||||
$this->mpdf->gradients[$n]['stream_trans'].=chr(intval(ord($patch_array[$i]['colors'][$j][4])*2.55));
|
||||
}
|
||||
else if ($colspace=='CMYK') {
|
||||
$this->mpdf->gradients[$n]['stream_trans'].=chr(intval(ord($patch_array[$i]['colors'][$j][5])*2.55));
|
||||
}
|
||||
else if ($colspace=='Gray') {
|
||||
$this->mpdf->gradients[$n]['stream_trans'].=chr(intval(ord($patch_array[$i]['colors'][$j][3])*2.55));
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->mpdf->gradients[$n]['trans'] = true;
|
||||
$s .= ' /TGS'.$n.' gs ';
|
||||
}
|
||||
//paint the gradient
|
||||
$s .= '/Sh'.$n.' sh'."\n";
|
||||
//restore previous Graphic State
|
||||
$s .= 'Q'."\n";
|
||||
if ($return) { return $s; }
|
||||
else { $this->mpdf->_out($s); }
|
||||
}
|
||||
|
||||
|
||||
// type = linear:2; radial: 3;
|
||||
// Linear: $coords - array of the form (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg).
|
||||
// The default value is from left to right (x1=0, y1=0, x2=1, y2=0).
|
||||
// Radial: $coords - array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1,
|
||||
// (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg).
|
||||
// (fx, fy) should be inside the circle, otherwise some areas will not be defined
|
||||
// $col = array(R,G,B/255); or array(G/255); or array(C,M,Y,K/100)
|
||||
// $stops = array('col'=>$col [, 'opacity'=>0-1] [, 'offset'=>0-1])
|
||||
function Gradient($x, $y, $w, $h, $type, $stops=array(), $colorspace='RGB', $coords='', $extend='', $return=false, $is_mask=false) {
|
||||
if (strtoupper(substr($type,0,1)) == 'L') { $type = 2; } // linear
|
||||
else if (strtoupper(substr($type,0,1)) == 'R') { $type = 3; } // radial
|
||||
if ($colorspace != 'CMYK' && $colorspace != 'Gray') {
|
||||
$colorspace = 'RGB';
|
||||
}
|
||||
$bboxw = $w;
|
||||
$bboxh = $h;
|
||||
$usex = $x;
|
||||
$usey = $y;
|
||||
$usew = $bboxw;
|
||||
$useh = $bboxh;
|
||||
|
||||
if ($type < 1) { $type = 2; }
|
||||
if ($coords[0]!==false && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$coords[0],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $coords[0] = $tmp/$w; }
|
||||
}
|
||||
if ($coords[1]!==false && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$coords[1],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $coords[1] = 1-($tmp/$h); }
|
||||
}
|
||||
// LINEAR
|
||||
if ($type == 2) {
|
||||
$angle = (isset($coords[4]) ? $coords[4] : false);
|
||||
$repeat = (isset($coords[5]) ? $coords[5] : false);
|
||||
// ALL POINTS SET (default for custom mPDF linear gradient) - no -moz
|
||||
if ($coords[0]!==false && $coords[1]!==false && $coords[2]!==false && $coords[3]!==false) {
|
||||
// do nothing - coords used as they are
|
||||
}
|
||||
|
||||
// If both a <point> and <angle> are defined, the gradient axis starts from the point and runs along the angle. The end point is
|
||||
// defined as before - in this case start points may not be in corners, and axis may not correctly fall in the right quadrant.
|
||||
// NO end points (Angle defined & Start points)
|
||||
else if ($angle!==false && $coords[0]!==false && $coords[1]!==false && $coords[2]===false && $coords[3]===false) {
|
||||
if ($angle==0 || $angle==360) { $coords[3]=$coords[1]; if ($coords[0]==1) $coords[2]=2; else $coords[2]=1; }
|
||||
else if ($angle==90) { $coords[2]=$coords[0]; $coords[3]=1; if ($coords[1]==1) $coords[3]=2; else $coords[3]=1; }
|
||||
else if ($angle==180) { if ($coords[4]==0) $coords[2]=-1; else $coords[2]=0; $coords[3]=$coords[1]; }
|
||||
else if ($angle==270) { $coords[2]=$coords[0]; if ($coords[1]==0) $coords[3]=-1; else $coords[3]=0; }
|
||||
else {
|
||||
$endx=1; $endy=1;
|
||||
if ($angle <=90) {
|
||||
if ($angle <=45) { $endy=tan(deg2rad($angle)); }
|
||||
else { $endx=tan(deg2rad(90-$angle)); }
|
||||
$b = atan2(($endy*$bboxh), ($endx*$bboxw));
|
||||
$ny = 1 - $coords[1] - (tan($b) * (1-$coords[0]));
|
||||
$tx = sin($b) * cos($b) * $ny;
|
||||
$ty = cos($b) * cos($b) * $ny;
|
||||
$coords[2] = 1+$tx; $coords[3] = 1-$ty;
|
||||
}
|
||||
else if ($angle <=180) {
|
||||
if ($angle <=135) { $endx=tan(deg2rad($angle-90)); }
|
||||
else { $endy=tan(deg2rad(180-$angle)); }
|
||||
$b = atan2(($endy*$bboxh), ($endx*$bboxw));
|
||||
$ny = 1 - $coords[1] - (tan($b) * ($coords[0]));
|
||||
$tx = sin($b) * cos($b) * $ny;
|
||||
$ty = cos($b) * cos($b) * $ny;
|
||||
$coords[2] = -$tx; $coords[3] = 1-$ty;
|
||||
}
|
||||
else if ($angle <=270) {
|
||||
if ($angle <=225) { $endy=tan(deg2rad($angle-180)); }
|
||||
else { $endx=tan(deg2rad(270-$angle)); }
|
||||
$b = atan2(($endy*$bboxh), ($endx*$bboxw));
|
||||
$ny = $coords[1] - (tan($b) * ($coords[0]));
|
||||
$tx = sin($b) * cos($b) * $ny;
|
||||
$ty = cos($b) * cos($b) * $ny;
|
||||
$coords[2] = -$tx; $coords[3] = $ty;
|
||||
}
|
||||
else {
|
||||
if ($angle <=315) { $endx=tan(deg2rad($angle-270)); }
|
||||
else { $endy=tan(deg2rad(360-$angle)); }
|
||||
$b = atan2(($endy*$bboxh), ($endx*$bboxw));
|
||||
$ny = $coords[1] - (tan($b) * (1-$coords[0]));
|
||||
$tx = sin($b) * cos($b) * $ny;
|
||||
$ty = cos($b) * cos($b) * $ny;
|
||||
$coords[2] = 1+$tx; $coords[3] = $ty;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -moz If the first parameter is only an <angle>, the gradient axis starts from the box's corner that would ensure the
|
||||
// axis goes through the box. The axis runs along the specified angle. The end point of the axis is defined such that the
|
||||
// farthest corner of the box from the starting point is perpendicular to the gradient axis at that point.
|
||||
// NO end points or Start points (Angle defined)
|
||||
else if ($angle!==false && $coords[0]===false && $coords[1]===false) {
|
||||
if ($angle==0 || $angle==360) { $coords[0]=0; $coords[1]=0; $coords[2]=1; $coords[3]=0; }
|
||||
else if ($angle==90) { $coords[0]=0; $coords[1]=0; $coords[2]=0; $coords[3]=1; }
|
||||
else if ($angle==180) { $coords[0]=1; $coords[1]=0; $coords[2]=0; $coords[3]=0; }
|
||||
else if ($angle==270) { $coords[0]=0; $coords[1]=1; $coords[2]=0; $coords[3]=0; }
|
||||
else {
|
||||
if ($angle <=90) {
|
||||
$coords[0]=0; $coords[1]=0;
|
||||
if ($angle <=45) { $endx=1; $endy=tan(deg2rad($angle)); }
|
||||
else { $endx=tan(deg2rad(90-$angle)); $endy=1; }
|
||||
}
|
||||
else if ($angle <=180) {
|
||||
$coords[0]=1; $coords[1]=0;
|
||||
if ($angle <=135) { $endx=tan(deg2rad($angle-90)); $endy=1; }
|
||||
else { $endx=1; $endy=tan(deg2rad(180-$angle)); }
|
||||
}
|
||||
else if ($angle <=270) {
|
||||
$coords[0]=1; $coords[1]=1;
|
||||
if ($angle <=225) { $endx=1; $endy=tan(deg2rad($angle-180)); }
|
||||
else { $endx=tan(deg2rad(270-$angle)); $endy=1; }
|
||||
}
|
||||
else {
|
||||
$coords[0]=0; $coords[1]=1;
|
||||
if ($angle <=315) { $endx=tan(deg2rad($angle-270)); $endy=1; }
|
||||
else { $endx=1; $endy=tan(deg2rad(360-$angle)); }
|
||||
}
|
||||
$b = atan2(($endy*$bboxh), ($endx*$bboxw));
|
||||
$h2 = $bboxh - ($bboxh * tan($b));
|
||||
$px = $bboxh + ($h2 * sin($b) * cos($b));
|
||||
$py = ($bboxh * tan($b)) + ($h2 * sin($b) * sin($b));
|
||||
$x1 = $px / $bboxh;
|
||||
$y1 = $py / $bboxh;
|
||||
if ($angle <=90) { $coords[2] = $x1; $coords[3] = $y1; }
|
||||
else if ($angle <=180) { $coords[2] = 1-$x1; $coords[3] = $y1; }
|
||||
else if ($angle <=270) { $coords[2] = 1-$x1; $coords[3] = 1-$y1; }
|
||||
else { $coords[2] = $x1; $coords[3] = 1-$y1; }
|
||||
}
|
||||
}
|
||||
// -moz If the first parameter to the gradient function is only a <point>, the gradient axis starts from the specified point,
|
||||
// and ends at the point you would get if you rotated the starting point by 180 degrees about the center of the box that the
|
||||
// gradient is to be applied to.
|
||||
// NO angle and NO end points (Start points defined)
|
||||
else if ((!isset($angle) || $angle===false) && $coords[0]!==false && $coords[1]!==false) { // should have start and end defined
|
||||
$coords[2] = 1-$coords[0]; $coords[3] = 1-$coords[1];
|
||||
$angle = rad2deg(atan2($coords[3]-$coords[1],$coords[2]-$coords[0]));
|
||||
if ($angle < 0) { $angle += 360; }
|
||||
else if ($angle > 360) { $angle -= 360; }
|
||||
if ($angle!=0 && $angle!=360 && $angle!=90 && $angle!=180 && $angle!=270) {
|
||||
if ($w >= $h) {
|
||||
$coords[1] *= $h/$w ;
|
||||
$coords[3] *= $h/$w ;
|
||||
$usew = $useh = $bboxw;
|
||||
$usey -= ($w-$h);
|
||||
}
|
||||
else {
|
||||
$coords[0] *= $w/$h ;
|
||||
$coords[2] *= $w/$h ;
|
||||
$usew = $useh = $bboxh;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -moz If neither a <point> or <angle> is specified, i.e. the entire function consists of only <stop> values, the gradient
|
||||
// axis starts from the top of the box and runs vertically downwards, ending at the bottom of the box.
|
||||
else { // default values T2B
|
||||
// All values are set in parseMozGradient - so won't appear here
|
||||
$coords = array(0,0,1,0); // default for original linear gradient (L2R)
|
||||
}
|
||||
$s = ' q';
|
||||
$s .= sprintf(' %.3F %.3F %.3F %.3F re W n', $x*_MPDFK, ($this->mpdf->h-$y)*_MPDFK, $w*_MPDFK, -$h*_MPDFK)."\n";
|
||||
$s .= sprintf(' %.3F 0 0 %.3F %.3F %.3F cm', $usew*_MPDFK, $useh*_MPDFK, $usex*_MPDFK, ($this->mpdf->h-($usey+$useh))*_MPDFK)."\n";
|
||||
}
|
||||
|
||||
// RADIAL
|
||||
else if ($type == 3) {
|
||||
$radius = (isset($coords[4]) ? $coords[4] : false);
|
||||
$angle = (isset($coords[5]) ? $coords[5] : false); // ?? no effect
|
||||
$shape = (isset($coords[6]) ? $coords[6] : false);
|
||||
$size = (isset($coords[7]) ? $coords[7] : false);
|
||||
$repeat = (isset($coords[8]) ? $coords[8] : false);
|
||||
// ALL POINTS AND RADIUS SET (default for custom mPDF radial gradient) - no -moz
|
||||
if ($coords[0]!==false && $coords[1]!==false && $coords[2]!==false && $coords[3]!==false && $coords[4]!==false) {
|
||||
// do nothing - coords used as they are
|
||||
}
|
||||
// If a <point> is defined
|
||||
else if ($shape!==false && $size!==false) {
|
||||
if ($coords[2]==false) { $coords[2] = $coords[0]; }
|
||||
if ($coords[3]==false) { $coords[3] = $coords[1]; }
|
||||
// ELLIPSE
|
||||
if ($shape=='ellipse') {
|
||||
$corner1 = sqrt(pow($coords[0],2) + pow($coords[1],2));
|
||||
$corner2 = sqrt(pow($coords[0],2) + pow((1-$coords[1]),2));
|
||||
$corner3 = sqrt(pow((1-$coords[0]),2) + pow($coords[1],2));
|
||||
$corner4 = sqrt(pow((1-$coords[0]),2) + pow((1-$coords[1]),2));
|
||||
if ($size=='closest-side') { $radius = min($coords[0], $coords[1], (1-$coords[0]), (1-$coords[1])); }
|
||||
else if ($size=='closest-corner') { $radius = min($corner1, $corner2, $corner3, $corner4); }
|
||||
else if ($size=='farthest-side') { $radius = max($coords[0], $coords[1], (1-$coords[0]), (1-$coords[1])); }
|
||||
else { $radius = max($corner1, $corner2, $corner3, $corner4); } // farthest corner (default)
|
||||
}
|
||||
// CIRCLE
|
||||
else if ($shape=='circle') {
|
||||
if ($w >= $h) {
|
||||
$coords[1] = $coords[3] = ($coords[1] * $h/$w) ;
|
||||
$corner1 = sqrt(pow($coords[0],2) + pow($coords[1],2));
|
||||
$corner2 = sqrt(pow($coords[0],2) + pow((($h/$w)-$coords[1]),2));
|
||||
$corner3 = sqrt(pow((1-$coords[0]),2) + pow($coords[1],2));
|
||||
$corner4 = sqrt(pow((1-$coords[0]),2) + pow((($h/$w)-$coords[1]),2));
|
||||
if ($size=='closest-side') { $radius = min($coords[0], $coords[1], (1-$coords[0]), (($h/$w)-$coords[1])); }
|
||||
else if ($size=='closest-corner') { $radius = min($corner1, $corner2, $corner3, $corner4); }
|
||||
else if ($size=='farthest-side') { $radius = max($coords[0], $coords[1], (1-$coords[0]), (($h/$w)-$coords[1])); }
|
||||
else if ($size=='farthest-corner') { $radius = max($corner1, $corner2, $corner3, $corner4); } // farthest corner (default)
|
||||
$usew = $useh = $bboxw;
|
||||
$usey -= ($w-$h);
|
||||
}
|
||||
else {
|
||||
$coords[0] = $coords[2] = ($coords[0] * $w/$h) ;
|
||||
$corner1 = sqrt(pow($coords[0],2) + pow($coords[1],2));
|
||||
$corner2 = sqrt(pow($coords[0],2) + pow((1-$coords[1]),2));
|
||||
$corner3 = sqrt(pow((($w/$h)-$coords[0]),2) + pow($coords[1],2));
|
||||
$corner4 = sqrt(pow((($w/$h)-$coords[0]),2) + pow((1-$coords[1]),2));
|
||||
if ($size=='closest-side') { $radius = min($coords[0], $coords[1], (($w/$h)-$coords[0]), (1-$coords[1])); }
|
||||
else if ($size=='closest-corner') { $radius = min($corner1, $corner2, $corner3, $corner4); }
|
||||
else if ($size=='farthest-side') { $radius = max($coords[0], $coords[1], (($w/$h)-$coords[0]), (1-$coords[1])); }
|
||||
else if ($size=='farthest-corner') { $radius = max($corner1, $corner2, $corner3, $corner4); } // farthest corner (default)
|
||||
$usew = $useh = $bboxh;
|
||||
}
|
||||
}
|
||||
if ($radius==0) { $radius=0.001; } // to prevent error
|
||||
$coords[4] = $radius;
|
||||
}
|
||||
|
||||
// -moz If entire function consists of only <stop> values
|
||||
else { // default values
|
||||
// All values are set in parseMozGradient - so won't appear here
|
||||
$coords = array(0.5,0.5,0.5,0.5); // default for radial gradient (centred)
|
||||
}
|
||||
$s = ' q';
|
||||
$s .= sprintf(' %.3F %.3F %.3F %.3F re W n', $x*_MPDFK, ($this->mpdf->h-$y)*_MPDFK, $w*_MPDFK, -$h*_MPDFK)."\n";
|
||||
$s .= sprintf(' %.3F 0 0 %.3F %.3F %.3F cm', $usew*_MPDFK, $useh*_MPDFK, $usex*_MPDFK, ($this->mpdf->h-($usey+$useh))*_MPDFK)."\n";
|
||||
}
|
||||
|
||||
$n = count($this->mpdf->gradients) + 1;
|
||||
$this->mpdf->gradients[$n]['type'] = $type;
|
||||
$this->mpdf->gradients[$n]['colorspace'] = $colorspace;
|
||||
$trans = false;
|
||||
$this->mpdf->gradients[$n]['is_mask'] = $is_mask;
|
||||
if ($is_mask) { $trans = true; }
|
||||
if (count($stops) == 1) { $stops[1] = $stops[0]; }
|
||||
if (!isset($stops[0]['offset'])) { $stops[0]['offset'] = 0; }
|
||||
if (!isset($stops[(count($stops)-1)]['offset'])) { $stops[(count($stops)-1)]['offset'] = 1; }
|
||||
|
||||
// Fix stop-offsets set as absolute lengths
|
||||
if ($type==2) {
|
||||
$axisx = ($coords[2]-$coords[0])*$usew;
|
||||
$axisy = ($coords[3]-$coords[1])*$useh;
|
||||
$axis_length = sqrt(pow($axisx,2) + pow($axisy,2));
|
||||
}
|
||||
else { $axis_length = $coords[4]*$usew; } // Absolute lengths are meaningless for an ellipse - Firefox uses Width as reference
|
||||
|
||||
for($i=0;$i<count($stops);$i++) {
|
||||
if (isset($stops[$i]['offset']) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$stops[$i]['offset'],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
$stops[$i]['offset'] = $tmp/$axis_length;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (isset($stops[0]['offset']) && $stops[0]['offset']>0) {
|
||||
$firststop = $stops[0];
|
||||
$firststop['offset'] = 0;
|
||||
array_unshift($stops, $firststop);
|
||||
}
|
||||
if (!$repeat && isset($stops[(count($stops)-1)]['offset']) && $stops[(count($stops)-1)]['offset']<1) {
|
||||
$endstop = $stops[(count($stops)-1)];
|
||||
$endstop['offset'] = 1;
|
||||
$stops[] = $endstop;
|
||||
}
|
||||
if ($stops[0]['offset'] > $stops[(count($stops)-1)]['offset']) {
|
||||
$stops[0]['offset'] = 0;
|
||||
$stops[(count($stops)-1)]['offset'] = 1;
|
||||
}
|
||||
|
||||
for($i=0;$i<count($stops);$i++) {
|
||||
// mPDF 5.3.74
|
||||
if ($colorspace == 'CMYK') {
|
||||
$this->mpdf->gradients[$n]['stops'][$i]['col'] = sprintf('%.3F %.3F %.3F %.3F', (ord($stops[$i]['col']{1})/100), (ord($stops[$i]['col']{2})/100), (ord($stops[$i]['col']{3})/100), (ord($stops[$i]['col']{4})/100));
|
||||
}
|
||||
else if ($colorspace == 'Gray') {
|
||||
$this->mpdf->gradients[$n]['stops'][$i]['col'] = sprintf('%.3F', (ord($stops[$i]['col']{1})/255));
|
||||
}
|
||||
else {
|
||||
$this->mpdf->gradients[$n]['stops'][$i]['col'] = sprintf('%.3F %.3F %.3F', (ord($stops[$i]['col']{1})/255), (ord($stops[$i]['col']{2})/255), (ord($stops[$i]['col']{3})/255));
|
||||
}
|
||||
if (!isset($stops[$i]['opacity'])) { $stops[$i]['opacity'] = 1; }
|
||||
else if ($stops[$i]['opacity'] > 1 || $stops[$i]['opacity'] < 0) { $stops[$i]['opacity'] = 1; }
|
||||
else if ($stops[$i]['opacity'] < 1) {
|
||||
$trans = true;
|
||||
}
|
||||
$this->mpdf->gradients[$n]['stops'][$i]['opacity'] = $stops[$i]['opacity'];
|
||||
// OFFSET
|
||||
if ($i>0 && $i<(count($stops)-1)) {
|
||||
if (!isset($stops[$i]['offset']) || (isset($stops[$i+1]['offset']) && $stops[$i]['offset']>$stops[$i+1]['offset']) || $stops[$i]['offset']<$stops[$i-1]['offset']) {
|
||||
if (isset($stops[$i-1]['offset']) && isset($stops[$i+1]['offset'])) {
|
||||
$stops[$i]['offset'] = ($stops[$i-1]['offset']+$stops[$i+1]['offset'])/2;
|
||||
}
|
||||
else {
|
||||
for($j=($i+1);$j<count($stops);$j++) {
|
||||
if(isset($stops[$j]['offset'])) { break; }
|
||||
}
|
||||
$int = ($stops[$j]['offset'] - $stops[($i-1)]['offset'])/($j-$i+1);
|
||||
for($f=0;$f<($j-$i-1);$f++) {
|
||||
$stops[($i+$f)]['offset'] = $stops[($i+$f-1)]['offset'] + ($int);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->mpdf->gradients[$n]['stops'][$i]['offset'] = $stops[$i]['offset'];
|
||||
$this->mpdf->gradients[$n]['stops'][$i]['offset'] = $stops[$i]['offset'];
|
||||
}
|
||||
|
||||
if ($repeat) {
|
||||
$ns = count($this->mpdf->gradients[$n]['stops']);
|
||||
$offs = array();
|
||||
for($i=0;$i<$ns;$i++) {
|
||||
$offs[$i] = $this->mpdf->gradients[$n]['stops'][$i]['offset'];
|
||||
}
|
||||
$gp = 0;
|
||||
$inside=true;
|
||||
while($inside) {
|
||||
$gp++;
|
||||
for($i=0;$i<$ns;$i++) {
|
||||
$this->mpdf->gradients[$n]['stops'][(($ns*$gp)+$i)] = $this->mpdf->gradients[$n]['stops'][(($ns*($gp-1))+$i)];
|
||||
$tmp = $this->mpdf->gradients[$n]['stops'][(($ns*($gp-1))+($ns-1))]['offset']+$offs[$i] ;
|
||||
if ($tmp < 1) { $this->mpdf->gradients[$n]['stops'][(($ns*$gp)+$i)]['offset'] = $tmp; }
|
||||
else {
|
||||
$this->mpdf->gradients[$n]['stops'][(($ns*$gp)+$i)]['offset'] = 1;
|
||||
$inside = false;
|
||||
break(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($trans) {
|
||||
$this->mpdf->gradients[$n]['trans'] = true;
|
||||
$s .= ' /TGS'.$n.' gs ';
|
||||
}
|
||||
if (!is_array($extend) || count($extend) <1) {
|
||||
$extend=array('true', 'true'); // These are supposed to be quoted - appear in PDF file as text
|
||||
}
|
||||
$this->mpdf->gradients[$n]['coords'] = $coords;
|
||||
$this->mpdf->gradients[$n]['extend'] = $extend;
|
||||
//paint the gradient
|
||||
$s .= '/Sh'.$n.' sh '."\n";
|
||||
//restore previous Graphic State
|
||||
$s .= ' Q '."\n";
|
||||
if ($return) { return $s; }
|
||||
else { $this->mpdf->_out($s); }
|
||||
}
|
||||
|
||||
|
||||
function parseMozGradient($bg) {
|
||||
// background[-image]: -moz-linear-gradient(left, #c7Fdde 20%, #FF0000 );
|
||||
// background[-image]: linear-gradient(left, #c7Fdde 20%, #FF0000 ); // CSS3
|
||||
if (preg_match('/repeating-/',$bg)) { $repeat = true; }
|
||||
else { $repeat = false; }
|
||||
if (preg_match('/linear-gradient\((.*)\)/',$bg,$m)) {
|
||||
$g = array();
|
||||
$g['type'] = 2;
|
||||
$g['colorspace'] = 'RGB';
|
||||
$g['extend'] = array('true','true');
|
||||
$v = trim($m[1]);
|
||||
// Change commas inside e.g. rgb(x,x,x)
|
||||
while(preg_match('/(\([^\)]*?),/',$v)) { $v = preg_replace('/(\([^\)]*?),/','\\1@',$v); }
|
||||
// Remove spaces inside e.g. rgb(x, x, x)
|
||||
while(preg_match('/(\([^\)]*?)[ ]/',$v)) { $v = preg_replace('/(\([^\)]*?)[ ]/','\\1',$v); }
|
||||
$bgr = preg_split('/\s*,\s*/',$v);
|
||||
for($i=0;$i<count($bgr);$i++) { $bgr[$i] = preg_replace('/@/', ',', $bgr[$i]); }
|
||||
// Is first part $bgr[0] a valid point/angle?
|
||||
$first = preg_split('/\s+/',trim($bgr[0]));
|
||||
if (preg_match('/(left|center|right|bottom|top|deg|grad|rad)/i',$bgr[0]) && !preg_match('/(<#|rgb|rgba|hsl|hsla)/i',$bgr[0])) {
|
||||
$startStops = 1;
|
||||
}
|
||||
else if (trim($first[(count($first)-1)]) === "0") {
|
||||
$startStops = 1;
|
||||
}
|
||||
else {
|
||||
$check = $this->mpdf->ConvertColor($first[0]);
|
||||
if ($check) $startStops = 0;
|
||||
else $startStops = 1;
|
||||
}
|
||||
// first part a valid point/angle?
|
||||
if ($startStops == 1) { // default values
|
||||
// [<point> || <angle>,] = [<% em px left center right bottom top> || <deg grad rad 0>,]
|
||||
if (preg_match('/([\-]*[0-9\.]+)(deg|grad|rad)/i',$bgr[0],$m)) {
|
||||
$angle = $m[1] + 0;
|
||||
if (strtolower($m[2])=='deg') { $angle = $angle; }
|
||||
else if (strtolower($m[2])=='grad') { $angle *= (360/400); }
|
||||
else if (strtolower($m[2])=='rad') { $angle = rad2deg($angle); }
|
||||
while($angle < 0) { $angle += 360; }
|
||||
$angle = ($angle % 360);
|
||||
}
|
||||
else if (trim($first[(count($first)-1)]) === "0") { $angle = 0; }
|
||||
if (preg_match('/left/i',$bgr[0])) { $startx = 0; }
|
||||
else if (preg_match('/right/i',$bgr[0])) { $startx = 1; }
|
||||
if (preg_match('/top/i',$bgr[0])) { $starty = 1; }
|
||||
else if (preg_match('/bottom/i',$bgr[0])) { $starty = 0; }
|
||||
// Check for %? ?% or %%
|
||||
if (preg_match('/(\d+)[%]/i',$first[0],$m)) { $startx = $m[1]/100; }
|
||||
else if (!isset($startx) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$first[0],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $startx = $m[1]; }
|
||||
}
|
||||
if (isset($first[1]) && preg_match('/(\d+)[%]/i',$first[1],$m)) { $starty = 1 - ($m[1]/100); }
|
||||
else if (!isset($starty) && isset($first[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$first[1],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $starty = $m[1]; }
|
||||
}
|
||||
if (isset($startx) && !isset($starty)) { $starty = 0.5; }
|
||||
if (!isset($startx) && isset($starty)) { $startx = 0.5; }
|
||||
|
||||
}
|
||||
// If neither a <point> or <angle> is specified, i.e. the entire function consists of only <stop> values, the gradient axis starts from the top of the box and runs vertically downwards, ending at the bottom of the box.
|
||||
else { // default values T2B
|
||||
$starty = 1; $startx = 0.5;
|
||||
$endy = 0; $endx = 0.5;
|
||||
}
|
||||
$coords = array();
|
||||
if (!isset($startx)) { $startx = false; }
|
||||
if (!isset($starty)) { $starty = false; }
|
||||
if (!isset($endx)) { $endx = false; }
|
||||
if (!isset($endy)) { $endy = false; }
|
||||
if (!isset($angle)) { $angle = false; }
|
||||
$g['coords'] = array($startx ,$starty ,$endx ,$endy, $angle, $repeat );
|
||||
$g['stops'] = array();
|
||||
for($i=$startStops;$i<count($bgr);$i++) {
|
||||
$stop = array();
|
||||
// parse stops
|
||||
$el = preg_split('/\s+/',trim($bgr[$i]));
|
||||
// mPDF 5.3.74
|
||||
$col = $this->mpdf->ConvertColor($el[0]);
|
||||
if ($col) { $stop['col'] = $col; }
|
||||
else { $stop['col'] = $col = $this->mpdf->ConvertColor(255); }
|
||||
if ($col{0}==1) $g['colorspace'] = 'Gray';
|
||||
else if ($col{0}==4 || $col{0}==6) $g['colorspace'] = 'CMYK';
|
||||
if ($col{0}==5) { $stop['opacity'] = ord($col{4})/100; } // transparency from rgba()
|
||||
else if ($col{0}==6) { $stop['opacity'] = ord($col{5})/100; } // transparency from cmyka()
|
||||
else if ($col{0}==1 && $col{2}==1) { $stop['opacity'] = ord($col{3})/100; } // transparency converted from rgba or cmyka()
|
||||
|
||||
if (isset($el[1]) && preg_match('/(\d+)[%]/',$el[1],$m)) {
|
||||
$stop['offset'] = $m[1]/100;
|
||||
if ($stop['offset']>1) { unset($stop['offset']); }
|
||||
}
|
||||
else if (isset($el[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$el[1],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $stop['offset'] = $m[1]; }
|
||||
}
|
||||
$g['stops'][] = $stop;
|
||||
}
|
||||
if (count($g['stops'] )) { return $g; }
|
||||
}
|
||||
else if (preg_match('/radial-gradient\((.*)\)/',$bg,$m)) {
|
||||
$g = array();
|
||||
$g['type'] = 3;
|
||||
$g['colorspace'] = 'RGB';
|
||||
$g['extend'] = array('true','true');
|
||||
$v = trim($m[1]);
|
||||
// Change commas inside e.g. rgb(x,x,x)
|
||||
while(preg_match('/(\([^\)]*?),/',$v)) { $v = preg_replace('/(\([^\)]*?),/','\\1@',$v); }
|
||||
// Remove spaces inside e.g. rgb(x, x, x)
|
||||
while(preg_match('/(\([^\)]*?)[ ]/',$v)) { $v = preg_replace('/(\([^\)]*?)[ ]/','\\1',$v); }
|
||||
$bgr = preg_split('/\s*,\s*/',$v);
|
||||
for($i=0;$i<count($bgr);$i++) { $bgr[$i] = preg_replace('/@/', ',', $bgr[$i]); }
|
||||
|
||||
// Is first part $bgr[0] a valid point/angle?
|
||||
$startStops = 0;
|
||||
$pos_angle = false;
|
||||
$shape_size = false;
|
||||
$first = preg_split('/\s+/',trim($bgr[0]));
|
||||
$checkCol = $this->mpdf->ConvertColor($first[0]);
|
||||
if (preg_match('/(left|center|right|bottom|top|deg|grad|rad)/i',$bgr[0]) && !preg_match('/(<#|rgb|rgba|hsl|hsla)/i',$bgr[0])) {
|
||||
$startStops=1;
|
||||
$pos_angle = $bgr[0];
|
||||
}
|
||||
else if (trim($first[(count($first)-1)]) === "0") {
|
||||
$startStops=1;
|
||||
$pos_angle = $bgr[0];
|
||||
}
|
||||
else if (preg_match('/(circle|ellipse|closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i',$bgr[0])) {
|
||||
$startStops=1;
|
||||
$shape_size = $bgr[0];
|
||||
}
|
||||
else if (!$checkCol) {
|
||||
$startStops=1;
|
||||
$pos_angle = $bgr[0];
|
||||
}
|
||||
if (preg_match('/(circle|ellipse|closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i',$bgr[1])) {
|
||||
$startStops=2;
|
||||
$shape_size = $bgr[1];
|
||||
}
|
||||
|
||||
// If valid point/angle?
|
||||
if ($pos_angle) { // default values
|
||||
// [<point> || <angle>,] = [<% em px left center right bottom top> || <deg grad rad 0>,]
|
||||
if (preg_match('/left/i',$pos_angle)) { $startx = 0; }
|
||||
else if (preg_match('/right/i',$pos_angle)) { $startx = 1; }
|
||||
if (preg_match('/top/i',$pos_angle)) { $starty = 1; }
|
||||
else if (preg_match('/bottom/i',$pos_angle)) { $starty = 0; }
|
||||
// Check for %? ?% or %%
|
||||
if (preg_match('/(\d+)[%]/i',$first[0],$m)) { $startx = $m[1]/100; }
|
||||
else if (!isset($startx) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$first[0],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $startx = $m[1]; }
|
||||
}
|
||||
if (isset($first[1]) && preg_match('/(\d+)[%]/i',$first[1],$m)) { $starty = 1 - ($m[1]/100); }
|
||||
else if (!isset($starty) && isset($first[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$first[1],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
if ($tmp) { $starty = $m[1]; }
|
||||
}
|
||||
|
||||
/*
|
||||
// ?? Angle has no effect in radial gradient (does not exist in CSS3 spec.)
|
||||
if (preg_match('/([\-]*[0-9\.]+)(deg|grad|rad)/i',$pos_angle,$m)) {
|
||||
$angle = $m[1] + 0;
|
||||
if (strtolower($m[2])=='deg') { $angle = $angle; }
|
||||
else if (strtolower($m[2])=='grad') { $angle *= (360/400); }
|
||||
else if (strtolower($m[2])=='rad') { $angle = rad2deg($angle); }
|
||||
while($angle < 0) { $angle += 360; }
|
||||
$angle = ($angle % 360);
|
||||
}
|
||||
*/
|
||||
if (!isset($starty)) { $starty = 0.5; }
|
||||
if (!isset($startx)) { $startx = 0.5; }
|
||||
|
||||
}
|
||||
// If neither a <point> or <angle> is specified, i.e. the entire function consists of only <stop> values, the gradient axis starts from the top of the box and runs vertically downwards, ending at the bottom of the box.
|
||||
else { // default values Center
|
||||
$starty = 0.5; $startx = 0.5;
|
||||
$endy = 0.5; $endx = 0.5;
|
||||
}
|
||||
|
||||
// If valid shape/size?
|
||||
$shape = 'ellipse'; // default
|
||||
$size = 'farthest-corner'; // default
|
||||
if ($shape_size) { // default values
|
||||
if (preg_match('/(circle|ellipse)/i',$shape_size, $m)) {
|
||||
$shape = $m[1];
|
||||
}
|
||||
if (preg_match('/(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i',$shape_size, $m)) {
|
||||
$size = $m[1];
|
||||
if ($size=='contain') { $size = 'closest-side'; }
|
||||
else if ($size=='cover') { $size = 'farthest-corner'; }
|
||||
}
|
||||
}
|
||||
|
||||
$coords = array();
|
||||
if (!isset($startx)) { $startx = false; }
|
||||
if (!isset($starty)) { $starty = false; }
|
||||
if (!isset($endx)) { $endx = false; }
|
||||
if (!isset($endy)) { $endy = false; }
|
||||
if (!isset($radius)) { $radius = false; }
|
||||
if (!isset($angle)) { $angle = 0; }
|
||||
$g['coords'] = array($startx ,$starty ,$endx ,$endy, $radius, $angle, $shape, $size, $repeat );
|
||||
|
||||
$g['stops'] = array();
|
||||
for($i=$startStops;$i<count($bgr);$i++) {
|
||||
$stop = array();
|
||||
// parse stops
|
||||
$el = preg_split('/\s+/',trim($bgr[$i]));
|
||||
// mPDF 5.3.74
|
||||
$col = $this->mpdf->ConvertColor($el[0]);
|
||||
if ($col) { $stop['col'] = $col; }
|
||||
else { $stop['col'] = $col = $this->mpdf->ConvertColor(255); }
|
||||
if ($col{0}==1) $g['colorspace'] = 'Gray';
|
||||
else if ($col{0}==4 || $col{0}==6) $g['colorspace'] = 'CMYK';
|
||||
if ($col{0}==5) { $stop['opacity'] = ord($col{4})/100; } // transparency from rgba()
|
||||
else if ($col{0}==6) { $stop['opacity'] = ord($col{5})/100; } // transparency from cmyka()
|
||||
else if ($col{0}==1 && $col{2}==1) { $stop['opacity'] = ord($col{3})/100; } // transparency converted from rgba or cmyka()
|
||||
|
||||
if (isset($el[1]) && preg_match('/(\d+)[%]/',$el[1],$m)) {
|
||||
$stop['offset'] = $m[1]/100;
|
||||
if ($stop['offset']>1) { unset($stop['offset']); }
|
||||
}
|
||||
else if (isset($el[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i',$el[1],$m)) {
|
||||
$tmp = $this->mpdf->ConvertSize($m[1],$this->mpdf->w,$this->mpdf->FontSize,false);
|
||||
$stop['offset'] = $el[1];
|
||||
}
|
||||
$g['stops'][] = $stop;
|
||||
}
|
||||
if (count($g['stops'] )) { return $g; }
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
function parseBackgroundGradient($bg) {
|
||||
// background-gradient: linear #00FFFF #FFFF00 0 0.5 1 0.5; or
|
||||
// background-gradient: radial #00FFFF #FFFF00 0.5 0.5 1 1 1.2;
|
||||
|
||||
$v = trim($bg);
|
||||
$bgr = preg_split('/\s+/',$v);
|
||||
$g = array();
|
||||
if (count($bgr)> 6) {
|
||||
if (strtoupper(substr($bgr[0],0,1)) == 'L' && count($bgr)==7) { // linear
|
||||
$g['type'] = 2;
|
||||
//$coords = array(0,0,1,1 ); // 0 0 1 0 or 0 1 1 1 is L 2 R; 1,1,0,1 is R2L; 1,1,1,0 is T2B; 1,0,1,1 is B2T
|
||||
// Linear: $coords - array of the form (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg).
|
||||
// The default value is from left to right (x1=0, y1=0, x2=1, y2=0).
|
||||
$g['coords'] = array($bgr[3], $bgr[4], $bgr[5], $bgr[6]);
|
||||
}
|
||||
else if (count($bgr)==8) { // radial
|
||||
$g['type'] = 3;
|
||||
// Radial: $coords - array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1,
|
||||
// (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg).
|
||||
// (fx, fy) should be inside the circle, otherwise some areas will not be defined
|
||||
$g['coords'] = array($bgr[3], $bgr[4], $bgr[5], $bgr[6], $bgr[7]);
|
||||
}
|
||||
$g['colorspace'] = 'RGB';
|
||||
// mPDF 5.3.74
|
||||
$cor = $this->mpdf->ConvertColor($bgr[1]);
|
||||
if ($cor{0}==1) $g['colorspace'] = 'Gray';
|
||||
else if ($cor{0}==4 || $cor{0}==6) $g['colorspace'] = 'CMYK';
|
||||
if ($cor) { $g['col'] = $cor; }
|
||||
else { $g['col'] = $this->mpdf->ConvertColor(255); }
|
||||
$cor = $this->mpdf->ConvertColor($bgr[2]);
|
||||
if ($cor) { $g['col2'] = $cor; }
|
||||
else { $g['col2'] = $this->mpdf->ConvertColor(255); }
|
||||
$g['extend'] = array('true','true');
|
||||
$g['stops'] = array(array('col'=>$g['col'], 'opacity'=>1, 'offset'=>0), array('col'=>$g['col2'], 'opacity'=>1, 'offset'=>1));
|
||||
return $g;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,282 +0,0 @@
|
||||
<?php
|
||||
|
||||
class meter {
|
||||
|
||||
|
||||
function __construct() {
|
||||
|
||||
}
|
||||
|
||||
function makeSVG($tag, $type, $value, $max, $min, $optimum, $low, $high) {
|
||||
$svg = '';
|
||||
if ($tag == 'meter') {
|
||||
|
||||
if ($type=='2') {
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
///////// CUSTOM <meter type="2">
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
$h = 10;
|
||||
$w = 160;
|
||||
$border_radius = 0.143; // Factor of Height
|
||||
|
||||
$svg = '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="'.$w.'px" height="'.$h.'px" viewBox="0 0 '.$w.' '.$h.'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" ><g>
|
||||
|
||||
|
||||
<defs>
|
||||
<linearGradient id="GrGRAY" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(222, 222, 222)" />
|
||||
<stop offset="20%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="25%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="100%" stop-color="rgb(182, 182, 182)" />
|
||||
</linearGradient>
|
||||
|
||||
</defs>
|
||||
';
|
||||
$svg .= '<rect x="0" y="0" width="'.$w.'" height="'.$h.'" fill="#f4f4f4" stroke="none" />';
|
||||
|
||||
// LOW to HIGH region
|
||||
//if ($low && $high && ($low != $min || $high != $max)) {
|
||||
if ($low && $high) {
|
||||
$barx = (($low-$min) / ($max-$min) ) * $w;
|
||||
$barw = (($high-$low) / ($max-$min) ) * $w;
|
||||
$svg .= '<rect x="'.$barx.'" y="0" width="'.$barw.'" height="'.$h.'" fill="url(#GrGRAY)" stroke="#888888" stroke-width="0.5px" />';
|
||||
}
|
||||
|
||||
// OPTIMUM Marker (? AVERAGE)
|
||||
if ($optimum) {
|
||||
$barx = (($optimum-$min) / ($max-$min) ) * $w;
|
||||
$barw = $h/2;
|
||||
$barcol = '#888888';
|
||||
$svg .= '<rect x="'.$barx.'" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$barw.'" height="'.$h.'" fill="'.$barcol.'" stroke="none" />';
|
||||
}
|
||||
|
||||
// VALUE Marker
|
||||
if ($value) {
|
||||
if ($min != $low && $value < $low) { $col = 'orange'; }
|
||||
else if ($max != $high && $value > $high) { $col = 'orange'; }
|
||||
else { $col = '#008800'; }
|
||||
$cx = (($value-$min) / ($max-$min) ) * $w;
|
||||
$cy = $h/2;
|
||||
$rx = $h/3.5;
|
||||
$ry = $h/2.2;
|
||||
$svg .= '<ellipse fill="'.$col.'" stroke="#000000" stroke-width="0.5px" cx="'.$cx.'" cy="'.$cy.'" rx="'.$rx.'" ry="'.$ry.'"/>';
|
||||
}
|
||||
|
||||
// BoRDER
|
||||
$svg .= '<rect x="0" y="0" width="'.$w.'" height="'.$h.'" fill="none" stroke="#888888" stroke-width="0.5px" />';
|
||||
|
||||
$svg .= '</g></svg>';
|
||||
}
|
||||
else if ($type=='3') {
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
///////// CUSTOM <meter type="2">
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
$h = 10;
|
||||
$w = 100;
|
||||
$border_radius = 0.143; // Factor of Height
|
||||
|
||||
$svg = '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="'.$w.'px" height="'.$h.'px" viewBox="0 0 '.$w.' '.$h.'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" ><g>
|
||||
|
||||
|
||||
<defs>
|
||||
<linearGradient id="GrGRAY" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(222, 222, 222)" />
|
||||
<stop offset="20%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="25%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="100%" stop-color="rgb(182, 182, 182)" />
|
||||
</linearGradient>
|
||||
|
||||
</defs>
|
||||
';
|
||||
$svg .= '<rect x="0" y="0" width="'.$w.'" height="'.$h.'" fill="#f4f4f4" stroke="none" />';
|
||||
|
||||
// LOW to HIGH region
|
||||
if ($low && $high && ($low != $min || $high != $max)) {
|
||||
//if ($low && $high) {
|
||||
$barx = (($low-$min) / ($max-$min) ) * $w;
|
||||
$barw = (($high-$low) / ($max-$min) ) * $w;
|
||||
$svg .= '<rect x="'.$barx.'" y="0" width="'.$barw.'" height="'.$h.'" fill="url(#GrGRAY)" stroke="#888888" stroke-width="0.5px" />';
|
||||
}
|
||||
|
||||
// OPTIMUM Marker (? AVERAGE)
|
||||
if ($optimum) {
|
||||
$barx = (($optimum-$min) / ($max-$min) ) * $w;
|
||||
$barw = $h/2;
|
||||
$barcol = '#888888';
|
||||
$svg .= '<rect x="'.$barx.'" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$barw.'" height="'.$h.'" fill="'.$barcol.'" stroke="none" />';
|
||||
}
|
||||
|
||||
// VALUE Marker
|
||||
if ($value) {
|
||||
if ($min != $low && $value < $low) { $col = 'orange'; }
|
||||
else if ($max != $high && $value > $high) { $col = 'orange'; }
|
||||
else { $col = 'orange'; }
|
||||
$cx = (($value-$min) / ($max-$min) ) * $w;
|
||||
$cy = $h/2;
|
||||
$rx = $h/2.2;
|
||||
$ry = $h/2.2;
|
||||
$svg .= '<ellipse fill="'.$col.'" stroke="#000000" stroke-width="0.5px" cx="'.$cx.'" cy="'.$cy.'" rx="'.$rx.'" ry="'.$ry.'"/>';
|
||||
}
|
||||
|
||||
// BoRDER
|
||||
$svg .= '<rect x="0" y="0" width="'.$w.'" height="'.$h.'" fill="none" stroke="#888888" stroke-width="0.5px" />';
|
||||
|
||||
$svg .= '</g></svg>';
|
||||
}
|
||||
else {
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
///////// DEFAULT <meter>
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
$h = 10;
|
||||
$w = 50;
|
||||
$border_radius = 0.143; // Factor of Height
|
||||
|
||||
$svg = '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="'.$w.'px" height="'.$h.'px" viewBox="0 0 '.$w.' '.$h.'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" ><g>
|
||||
|
||||
<defs>
|
||||
<linearGradient id="GrGRAY" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(222, 222, 222)" />
|
||||
<stop offset="20%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="25%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="100%" stop-color="rgb(182, 182, 182)" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="GrRED" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(255, 162, 162)" />
|
||||
<stop offset="20%" stop-color="rgb(255, 218, 218)" />
|
||||
<stop offset="25%" stop-color="rgb(255, 218, 218)" />
|
||||
<stop offset="100%" stop-color="rgb(255, 0, 0)" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="GrGREEN" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(102, 230, 102)" />
|
||||
<stop offset="20%" stop-color="rgb(218, 255, 218)" />
|
||||
<stop offset="25%" stop-color="rgb(218, 255, 218)" />
|
||||
<stop offset="100%" stop-color="rgb(0, 148, 0)" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="GrBLUE" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(102, 102, 230)" />
|
||||
<stop offset="20%" stop-color="rgb(238, 238, 238)" />
|
||||
<stop offset="25%" stop-color="rgb(238, 238, 238)" />
|
||||
<stop offset="100%" stop-color="rgb(0, 0, 128)" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="GrORANGE" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(255, 186, 0)" />
|
||||
<stop offset="20%" stop-color="rgb(255, 238, 168)" />
|
||||
<stop offset="25%" stop-color="rgb(255, 238, 168)" />
|
||||
<stop offset="100%" stop-color="rgb(255, 155, 0)" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$w.'" height="'.$h.'" fill="url(#GrGRAY)" stroke="none" />
|
||||
';
|
||||
|
||||
if ($value) {
|
||||
$barw = (($value-$min) / ($max-$min) ) * $w;
|
||||
if ($optimum < $low) {
|
||||
if ($value < $low) { $barcol = 'url(#GrGREEN)'; }
|
||||
else if ($value > $high) { $barcol = 'url(#GrRED)'; }
|
||||
else { $barcol = 'url(#GrORANGE)'; }
|
||||
}
|
||||
else if ($optimum > $high) {
|
||||
if ($value < $low) { $barcol = 'url(#GrRED)'; }
|
||||
else if ($value > $high) { $barcol = 'url(#GrGREEN)'; }
|
||||
else { $barcol = 'url(#GrORANGE)'; }
|
||||
}
|
||||
else {
|
||||
if ($value < $low) { $barcol = 'url(#GrORANGE)'; }
|
||||
else if ($value > $high) { $barcol = 'url(#GrORANGE)'; }
|
||||
else { $barcol = 'url(#GrGREEN)'; }
|
||||
}
|
||||
$svg .= '<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$barw.'" height="'.$h.'" fill="'.$barcol.'" stroke="none" />';
|
||||
}
|
||||
|
||||
|
||||
// Borders
|
||||
//$svg .= '<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$w.'" height="'.$h.'" fill="none" stroke="#888888" stroke-width="0.5px" />';
|
||||
if ($value) {
|
||||
// $svg .= '<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$barw.'" height="'.$h.'" fill="none" stroke="#888888" stroke-width="0.5px" />';
|
||||
}
|
||||
|
||||
|
||||
$svg .= '</g></svg>';
|
||||
}
|
||||
}
|
||||
else { // $tag == 'progress'
|
||||
|
||||
if ($type=='2') {
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
///////// CUSTOM <progress type="2">
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
}
|
||||
else {
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
///////// DEFAULT <progress>
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
$h = 10;
|
||||
$w = 100;
|
||||
$border_radius = 0.143; // Factor of Height
|
||||
|
||||
if ($value or $value==='0') {
|
||||
$fill = 'url(#GrGRAY)';
|
||||
}
|
||||
else {
|
||||
$fill = '#f8f8f8';
|
||||
}
|
||||
|
||||
$svg = '<svg width="'.$w.'px" height="'.$h.'px" viewBox="0 0 '.$w.' '.$h.'"><g>
|
||||
|
||||
<defs>
|
||||
<linearGradient id="GrGRAY" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(222, 222, 222)" />
|
||||
<stop offset="20%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="25%" stop-color="rgb(232, 232, 232)" />
|
||||
<stop offset="100%" stop-color="rgb(182, 182, 182)" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="GrGREEN" x1="0" y1="0" x2="0" y2="1" gradientUnits="boundingBox">
|
||||
<stop offset="0%" stop-color="rgb(102, 230, 102)" />
|
||||
<stop offset="20%" stop-color="rgb(218, 255, 218)" />
|
||||
<stop offset="25%" stop-color="rgb(218, 255, 218)" />
|
||||
<stop offset="100%" stop-color="rgb(0, 148, 0)" />
|
||||
</linearGradient>
|
||||
|
||||
</defs>
|
||||
|
||||
<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$w.'" height="'.$h.'" fill="'.$fill.'" stroke="none" />
|
||||
';
|
||||
|
||||
if ($value) {
|
||||
$barw = (($value-$min) / ($max-$min) ) * $w;
|
||||
$barcol = 'url(#GrGREEN)';
|
||||
$svg .= '<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$barw.'" height="'.$h.'" fill="'.$barcol.'" stroke="none" />';
|
||||
}
|
||||
|
||||
|
||||
// Borders
|
||||
$svg .= '<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$w.'" height="'.$h.'" fill="none" stroke="#888888" stroke-width="0.5px" />';
|
||||
if ($value) {
|
||||
// $svg .= '<rect x="0" y="0" rx="'.($h*$border_radius).'px" ry="'.($h*$border_radius).'px" width="'.$barw.'" height="'.$h.'" fill="none" stroke="#888888" stroke-width="0.5px" />';
|
||||
}
|
||||
|
||||
|
||||
$svg .= '</g></svg>';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return $svg;
|
||||
}
|
||||
|
||||
|
||||
} // end of class
|
||||
|
||||
?>
|
||||
@ -1,481 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
class MYANMAR {
|
||||
|
||||
/* FROM hb-ot-shape-complex-indic-private.hh */
|
||||
// indic_category
|
||||
const OT_X = 0;
|
||||
const OT_C = 1;
|
||||
const OT_V = 2;
|
||||
const OT_N = 3;
|
||||
const OT_H = 4;
|
||||
const OT_ZWNJ = 5;
|
||||
const OT_ZWJ = 6;
|
||||
const OT_M = 7; /* Matra or Dependent Vowel */
|
||||
const OT_SM = 8;
|
||||
const OT_VD = 9;
|
||||
const OT_A = 10;
|
||||
const OT_NBSP = 11;
|
||||
const OT_DOTTEDCIRCLE = 12; /* Not in the spec, but special in Uniscribe. /Very very/ special! */
|
||||
const OT_RS = 13; /* Register Shifter, used in Khmer OT spec */
|
||||
const OT_Coeng = 14;
|
||||
const OT_Repha = 15;
|
||||
const OT_Ra = 16; /* Not explicitly listed in the OT spec, but used in the grammar. */
|
||||
const OT_CM = 17;
|
||||
|
||||
/* FROM hb-ot-shape-complex-myanmar.hh */
|
||||
// myanmar_category
|
||||
const OT_DB = 3; // same as INDIC::OT_N; /* Dot below */
|
||||
const OT_GB = 12; // same as INDIC::OT_DOTTEDCIRCLE;
|
||||
|
||||
const OT_As = 18; /* Asat */
|
||||
const OT_D = 19; /* Digits except zero */
|
||||
const OT_D0 = 20; /* Digit zero */
|
||||
const OT_MH = 21; /* Various consonant medial types */
|
||||
const OT_MR = 22; /* Various consonant medial types */
|
||||
const OT_MW = 23; /* Various consonant medial types */
|
||||
const OT_MY = 24; /* Various consonant medial types */
|
||||
const OT_PT = 25; /* Pwo and other tones */
|
||||
const OT_VAbv = 26;
|
||||
const OT_VBlw = 27;
|
||||
const OT_VPre = 28;
|
||||
const OT_VPst = 29;
|
||||
const OT_VS = 30; /* Variation selectors */
|
||||
|
||||
|
||||
// Based on myanmar_category used to make string to find syllables
|
||||
// OT_ to string character (using e.g. OT_C from MYANMAR) hb-ot-shape-complex-myanmar-private.hh
|
||||
public static $myanmar_category_char = array(
|
||||
'x',
|
||||
'C',
|
||||
'V',
|
||||
'N',
|
||||
'H',
|
||||
'Z',
|
||||
'J',
|
||||
'x',
|
||||
'S',
|
||||
'x',
|
||||
'A',
|
||||
'x',
|
||||
'D',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'R',
|
||||
'x',
|
||||
|
||||
|
||||
'a', /* As Asat */
|
||||
'd', /* Digits except zero */
|
||||
'o', /* Digit zero */
|
||||
'k', /* Medial types */
|
||||
'l', /* Medial types */
|
||||
'm', /* Medial types */
|
||||
'n', /* Medial types */
|
||||
'p', /* Pwo and other tones */
|
||||
'v', /* Vowel aboVe */
|
||||
'b', /* Vowel Below */
|
||||
'e', /* Vowel prE */
|
||||
't', /* Vowel posT */
|
||||
's', /* variation Selector */
|
||||
|
||||
);
|
||||
|
||||
|
||||
/* Visual positions in a syllable from left to right. */
|
||||
/* FROM hb-ot-shape-complex-myanmar-private.hh */
|
||||
// myanmar_position
|
||||
const POS_START = 0;
|
||||
|
||||
const POS_RA_TO_BECOME_REPH = 1;
|
||||
const POS_PRE_M = 2;
|
||||
const POS_PRE_C = 3;
|
||||
|
||||
const POS_BASE_C = 4;
|
||||
const POS_AFTER_MAIN = 5;
|
||||
|
||||
const POS_ABOVE_C = 6;
|
||||
|
||||
const POS_BEFORE_SUB = 7;
|
||||
const POS_BELOW_C = 8;
|
||||
const POS_AFTER_SUB = 9;
|
||||
|
||||
const POS_BEFORE_POST = 10;
|
||||
const POS_POST_C = 11;
|
||||
const POS_AFTER_POST = 12;
|
||||
|
||||
const POS_FINAL_C = 13;
|
||||
const POS_SMVD = 14;
|
||||
|
||||
const POS_END = 15;
|
||||
|
||||
|
||||
|
||||
public static function set_myanmar_properties(&$info) {
|
||||
$u = $info['uni'];
|
||||
$type = self::myanmar_get_categories($u);
|
||||
$cat = ($type & 0x7F);
|
||||
$pos = ($type >> 8);
|
||||
/*
|
||||
* Re-assign category
|
||||
* http://www.microsoft.com/typography/OpenTypeDev/myanmar/intro.htm#analyze
|
||||
*/
|
||||
if (self::in_range($u, 0xFE00, 0xFE0F))
|
||||
$cat = self::OT_VS;
|
||||
else if ($u == 0x200C) $cat = self::OT_ZWNJ;
|
||||
else if ($u == 0x200D) $cat = self::OT_ZWJ;
|
||||
|
||||
switch ($u) {
|
||||
case 0x002D: case 0x00A0: case 0x00D7: case 0x2012:
|
||||
case 0x2013: case 0x2014: case 0x2015: case 0x2022:
|
||||
case 0x25CC: case 0x25FB: case 0x25FC: case 0x25FD:
|
||||
case 0x25FE:
|
||||
$cat = self::OT_GB;
|
||||
break;
|
||||
|
||||
case 0x1004: case 0x101B: case 0x105A:
|
||||
$cat = self::OT_Ra;
|
||||
break;
|
||||
|
||||
case 0x1032: case 0x1036:
|
||||
$cat = self::OT_A;
|
||||
break;
|
||||
|
||||
case 0x103A:
|
||||
$cat = self::OT_As;
|
||||
break;
|
||||
|
||||
case 0x1041: case 0x1042: case 0x1043: case 0x1044:
|
||||
case 0x1045: case 0x1046: case 0x1047: case 0x1048:
|
||||
case 0x1049: case 0x1090: case 0x1091: case 0x1092:
|
||||
case 0x1093: case 0x1094: case 0x1095: case 0x1096:
|
||||
case 0x1097: case 0x1098: case 0x1099:
|
||||
$cat = self::OT_D;
|
||||
break;
|
||||
|
||||
case 0x1040:
|
||||
$cat = self::OT_D; /* XXX The spec says D0, but Uniscribe doesn't seem to do. */
|
||||
break;
|
||||
|
||||
case 0x103E: case 0x1060:
|
||||
$cat = self::OT_MH;
|
||||
break;
|
||||
|
||||
case 0x103C:
|
||||
$cat = self::OT_MR;
|
||||
break;
|
||||
|
||||
case 0x103D: case 0x1082:
|
||||
$cat = self::OT_MW;
|
||||
break;
|
||||
|
||||
case 0x103B: case 0x105E: case 0x105F:
|
||||
$cat = self::OT_MY;
|
||||
break;
|
||||
|
||||
case 0x1063: case 0x1064: case 0x1069: case 0x106A:
|
||||
case 0x106B: case 0x106C: case 0x106D: case 0xAA7B:
|
||||
$cat = self::OT_PT;
|
||||
break;
|
||||
|
||||
case 0x1038: case 0x1087: case 0x1088: case 0x1089:
|
||||
case 0x108A: case 0x108B: case 0x108C: case 0x108D:
|
||||
case 0x108F: case 0x109A: case 0x109B: case 0x109C:
|
||||
$cat = self::OT_SM;
|
||||
break;
|
||||
}
|
||||
|
||||
if ($cat == self::OT_M) {
|
||||
switch ($pos) {
|
||||
case self::POS_PRE_C:
|
||||
$cat = self::OT_VPre;
|
||||
$pos = self::POS_PRE_M;
|
||||
break;
|
||||
case self::POS_ABOVE_C: $cat = self::OT_VAbv; break;
|
||||
case self::POS_BELOW_C: $cat = self::OT_VBlw; break;
|
||||
case self::POS_POST_C: $cat = self::OT_VPst; break;
|
||||
}
|
||||
}
|
||||
$info['myanmar_category'] = $cat;
|
||||
$info['myanmar_position'] = $pos;
|
||||
}
|
||||
|
||||
// syllable_type
|
||||
const CONSONANT_SYLLABLE = 0;
|
||||
const BROKEN_CLUSTER = 3;
|
||||
const NON_MYANMAR_CLUSTER = 4;
|
||||
|
||||
|
||||
|
||||
public static function set_syllables(&$o, $s, &$broken_syllables) {
|
||||
$ptr = 0;
|
||||
$syllable_serial = 1;
|
||||
$broken_syllables = false;
|
||||
|
||||
while($ptr < strlen($s)) {
|
||||
$match = '';
|
||||
$syllable_length = 1;
|
||||
$syllable_type = self::NON_MYANMAR_CLUSTER ;
|
||||
// CONSONANT_SYLLABLE Consonant syllable
|
||||
// From OT spec:
|
||||
if (preg_match('/^(RaH)?([C|R]|V|d|D)[s]?(H([C|R|V])[s]?)*(H|[a]*[n]?[l]?((m[k]?|k)[a]?)?[e]*[v]*[b]*[A]*(N[a]?)?(t[k]?[a]*[v]*[A]*(N[a]?)?)*(p[A]*(N[a]?)?)*S*[J|Z]?)/', substr($s,$ptr), $ma)) {
|
||||
$syllable_length = strlen($ma[0]);
|
||||
$syllable_type = self::CONSONANT_SYLLABLE ;
|
||||
}
|
||||
|
||||
// BROKEN_CLUSTER syllable
|
||||
else if (preg_match('/^(RaH)?s?(H|[a]*[n]?[l]?((m[k]?|k)[a]?)?[e]*[v]*[b]*[A]*(N[a]?)?(t[k]?[a]*[v]*[A]*(N[a]?)?)*(p[A]*(N[a]?)?)*S*[J|Z]?)/', substr($s,$ptr), $ma)) {
|
||||
if (strlen($ma[0])) { // May match blank
|
||||
$syllable_length = strlen($ma[0]);
|
||||
$syllable_type = self::BROKEN_CLUSTER ;
|
||||
$broken_syllables = true;
|
||||
}
|
||||
}
|
||||
for ($i = $ptr; $i < $ptr+$syllable_length; $i++) { $o[$i]['syllable'] = ($syllable_serial << 4) | $syllable_type; }
|
||||
$ptr += $syllable_length ;
|
||||
$syllable_serial++;
|
||||
if ($syllable_serial == 16) $syllable_serial = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static function reordering(&$info, $GSUBdata, $broken_syllables, $dottedcircle) {
|
||||
if ($broken_syllables && $dottedcircle) { self::insert_dotted_circles ($info, $dottedcircle); }
|
||||
$count = count($info);
|
||||
if (!$count) return;
|
||||
$last = 0;
|
||||
$last_syllable = $info[0]['syllable'];
|
||||
for ($i = 1; $i < $count; $i++) {
|
||||
if ($last_syllable != $info[$i]['syllable']) {
|
||||
self::reordering_syllable ($info, $GSUBdata, $last, $i);
|
||||
$last = $i;
|
||||
$last_syllable = $info[$last]['syllable'];
|
||||
}
|
||||
}
|
||||
self::reordering_syllable($info, $GSUBdata, $last, $count);
|
||||
}
|
||||
|
||||
public static function insert_dotted_circles(&$info, $dottedcircle) {
|
||||
$idx = 0;
|
||||
$last_syllable = 0;
|
||||
while ($idx < count($info)) {
|
||||
$syllable = $info[$idx]['syllable'];
|
||||
$syllable_type = ($syllable & 0x0F);
|
||||
if ($last_syllable != $syllable && $syllable_type == self::BROKEN_CLUSTER) {
|
||||
$last_syllable = $syllable;
|
||||
$dottedcircle[0]['syllable'] = $info[$idx]['syllable'];
|
||||
array_splice($info, $idx, 0, $dottedcircle);
|
||||
}
|
||||
else
|
||||
$idx++;
|
||||
}
|
||||
// In case of final bloken cluster...
|
||||
$syllable = $info[$idx]['syllable'];
|
||||
$syllable_type = ($syllable & 0x0F);
|
||||
if ($last_syllable != $syllable && $syllable_type == self::BROKEN_CLUSTER) {
|
||||
$dottedcircle[0]['syllable'] = $info[$idx]['syllable'];
|
||||
array_splice($info, $idx, 0, $dottedcircle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Rules from:
|
||||
* https://www.microsoft.com/typography/otfntdev/devanot/shaping.aspx */
|
||||
|
||||
public static function reordering_syllable (&$info, $GSUBdata, $start, $end) {
|
||||
/* vowel_syllable: We made the vowels look like consonants. So uses the consonant logic! */
|
||||
/* broken_cluster: We already inserted dotted-circles, so just call the standalone_cluster. */
|
||||
|
||||
$syllable_type = ($info[$start]['syllable'] & 0x0F);
|
||||
if ($syllable_type==self::NON_MYANMAR_CLUSTER ) { return; }
|
||||
if ($syllable_type==self::BROKEN_CLUSTER) {
|
||||
//if ($uniscribe_bug_compatible) {
|
||||
/* For dotted-circle, this is what Uniscribe does:
|
||||
* If dotted-circle is the last glyph, it just does nothing.
|
||||
* i.e. It doesn't form Reph. */
|
||||
if ($info[$end - 1]['myanmar_category'] == self::OT_DOTTEDCIRCLE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$base = $end;
|
||||
$has_reph = false;
|
||||
$limit = $start;
|
||||
|
||||
if (($start + 3 <= $end) &&
|
||||
$info[$start]['myanmar_category'] == self::OT_Ra &&
|
||||
$info[$start+1]['myanmar_category'] == self::OT_As &&
|
||||
$info[$start+2]['myanmar_category'] == self::OT_H ) {
|
||||
$limit += 3;
|
||||
$base = $start;
|
||||
$has_reph = true;
|
||||
}
|
||||
|
||||
if (!$has_reph)
|
||||
$base = $limit;
|
||||
|
||||
for ($i = $limit; $i < $end; $i++) {
|
||||
if (self::is_consonant($info[$i])) {
|
||||
$base = $i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Reorder! */
|
||||
$i = $start;
|
||||
for (; $i < $start + ($has_reph ? 3 : 0); $i++)
|
||||
$info[$i]['myanmar_position'] = self::POS_AFTER_MAIN;
|
||||
for (; $i < $base; $i++)
|
||||
$info[$i]['myanmar_position'] = self::POS_PRE_C;
|
||||
if ($i < $end) {
|
||||
$info[$i]['myanmar_position'] = self::POS_BASE_C;
|
||||
$i++;
|
||||
}
|
||||
$pos = self::POS_AFTER_MAIN;
|
||||
/* The following loop may be ugly, but it implements all of
|
||||
* Myanmar reordering! */
|
||||
for (; $i < $end; $i++) {
|
||||
if ($info[$i]['myanmar_category'] == self::OT_MR) /* Pre-base reordering */
|
||||
{
|
||||
$info[$i]['myanmar_position'] = self::POS_PRE_C;
|
||||
continue;
|
||||
}
|
||||
if ($info[$i]['myanmar_position'] < self::POS_BASE_C) /* Left matra */
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($pos == self::POS_AFTER_MAIN && $info[$i]['myanmar_category'] == self::OT_VBlw)
|
||||
{
|
||||
$pos = self::POS_BELOW_C;
|
||||
$info[$i]['myanmar_position'] = $pos;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($pos == self::POS_BELOW_C && $info[$i]['myanmar_category'] == self::OT_A)
|
||||
{
|
||||
$info[$i]['myanmar_position'] = self::POS_BEFORE_SUB;
|
||||
continue;
|
||||
}
|
||||
if ($pos == self::POS_BELOW_C && $info[$i]['myanmar_category'] == self::OT_VBlw)
|
||||
{
|
||||
$info[$i]['myanmar_position'] = $pos;
|
||||
continue;
|
||||
}
|
||||
if ($pos == self::POS_BELOW_C && $info[$i]['myanmar_category'] != self::OT_A)
|
||||
{
|
||||
$pos = self::POS_AFTER_SUB;
|
||||
$info[$i]['myanmar_position'] = $pos;
|
||||
continue;
|
||||
}
|
||||
$info[$i]['myanmar_position'] = $pos;
|
||||
}
|
||||
|
||||
|
||||
/* Sit tight, rock 'n roll! */
|
||||
self::bubble_sort ($info, $start, $end - $start);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static function is_one_of ($info, $flags) {
|
||||
if (isset($info['is_ligature']) && $info['is_ligature']) return false; /* If it ligated, all bets are off. */
|
||||
return !!(self::FLAG($info['myanmar_category']) & $flags);
|
||||
}
|
||||
|
||||
/* Vowels and placeholders treated as if they were consonants. */
|
||||
public static function is_consonant($info) {
|
||||
return self::is_one_of($info, (self::FLAG(self::OT_C) | self::FLAG(self::OT_CM) | self::FLAG(self::OT_Ra) | self::FLAG(self::OT_V) | self::FLAG(self::OT_NBSP) | self::FLAG(self::OT_GB)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// From hb-private.hh
|
||||
public static function in_range ($u, $lo, $hi) {
|
||||
if ( (($lo^$hi) & $lo) == 0 && (($lo^$hi) & $hi) == ($lo^$hi) && (($lo^$hi) & (($lo^$hi) + 1)) == 0 )
|
||||
return ($u & ~($lo^$hi)) == $lo;
|
||||
else
|
||||
return $lo <= $u && $u <= $hi;
|
||||
}
|
||||
|
||||
// From hb-private.hh
|
||||
public static function FLAG($x) { return (1<<($x)); }
|
||||
|
||||
public static function FLAG_RANGE($x,$y) { self::FLAG(y+1) - self::FLAG(x); }
|
||||
|
||||
|
||||
|
||||
// BELOW from hb-ot-shape-complex-indic.cc
|
||||
// see INDIC for details
|
||||
|
||||
public static $myanmar_table = array(
|
||||
|
||||
/* Myanmar (1000..109F) */
|
||||
|
||||
/* 1000 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1008 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1010 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1018 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1020 */ 3841, 3842, 3842, 3842, 3842, 3842, 3842, 3842,
|
||||
/* 1028 */ 3842, 3842, 3842, 2823, 2823, 1543, 1543, 2055,
|
||||
/* 1030 */ 2055, 775, 1543, 1543, 1543, 1543, 3848, 3843,
|
||||
/* 1038 */ 3848, 3844, 1540, 3857, 3857, 3857, 3857, 3841,
|
||||
/* 1040 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1048 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1050 */ 3841, 3841, 3842, 3842, 3842, 3842, 2823, 2823,
|
||||
/* 1058 */ 2055, 2055, 3841, 3841, 3841, 3841, 3857, 3857,
|
||||
/* 1060 */ 3857, 3841, 2823, 3843, 3843, 3841, 3841, 2823,
|
||||
/* 1068 */ 2823, 3843, 3843, 3843, 3843, 3843, 3841, 3841,
|
||||
/* 1070 */ 3841, 1543, 1543, 1543, 1543, 3841, 3841, 3841,
|
||||
/* 1078 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1080 */ 3841, 3841, 3857, 2823, 775, 1543, 1543, 3843,
|
||||
/* 1088 */ 3843, 3843, 3843, 3843, 3843, 3843, 3841, 3843,
|
||||
/* 1090 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1098 */ 3840, 3840, 3843, 3843, 2823, 1543, 3840, 3840,
|
||||
|
||||
/* Myanmar Extended-A (AA60..AA7F) */
|
||||
|
||||
/* AA60 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* AA68 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* AA70 */ 3840, 3841, 3841, 3841, 3840, 3840, 3840, 3840,
|
||||
/* AA78 */ 3840, 3840, 3841, 3843, 3840, 3840, 3840, 3840,
|
||||
|
||||
|
||||
);
|
||||
|
||||
// from "hb-ot-shape-complex-indic-table.cc"
|
||||
public static function myanmar_get_categories ($u) {
|
||||
if (0x1000 <= $u && $u <= 0x109F) return self::$myanmar_table[$u - 0x1000 + 0]; // offset 0 for Most "myanmar"
|
||||
if (0xAA60 <= $u && $u <= 0xAA7F) return self::$myanmar_table[$u - 0xAA60 + 160]; // offset for extensions
|
||||
if ($u == 0x00A0) return 3851; // (ISC_CP | (IMC_x << 8))
|
||||
if ($u == 0x25CC) return 3851; // (ISC_CP | (IMC_x << 8))
|
||||
return 3840; // (ISC_x | (IMC_x << 8))
|
||||
}
|
||||
|
||||
|
||||
public static function bubble_sort(&$arr, $start, $len) {
|
||||
if ($len<2) { return;}
|
||||
$k = $start+$len-2;
|
||||
while ($k >= $start) {
|
||||
for ($j=$start; $j<=$k; $j++) {
|
||||
if ($arr[$j]['myanmar_position'] > $arr[$j + 1]['myanmar_position']) {
|
||||
$t = $arr[$j];
|
||||
$arr[$j] = $arr[$j + 1];
|
||||
$arr[$j + 1] = $t;
|
||||
}
|
||||
}
|
||||
$k--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // end Class
|
||||
|
||||
?>
|
||||
@ -1,349 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
class SEA {
|
||||
|
||||
// South East Asian shaper
|
||||
|
||||
// sea_category
|
||||
const OT_X = 0;
|
||||
const OT_C = 1;
|
||||
const OT_IV = 2; # Independent Vowel
|
||||
const OT_T = 3; # Tone Marks
|
||||
const OT_H = 4; # Halant
|
||||
const OT_A = 10; # Anusvara
|
||||
const OT_GB = 12; # Generic Base (OT_DOTTEDCIRCLE in Indic)
|
||||
const OT_CM = 17; # Consonant Medial
|
||||
const OT_MR = 22; # Medial Ra
|
||||
const OT_VAbv = 26;
|
||||
const OT_VBlw = 27;
|
||||
const OT_VPre = 28;
|
||||
const OT_VPst = 29;
|
||||
// ? From Indic categories
|
||||
const OT_ZWNJ = 5;
|
||||
const OT_ZWJ = 6;
|
||||
const OT_M = 7;
|
||||
const OT_SM = 8;
|
||||
const OT_VD = 9;
|
||||
const OT_NBSP = 11;
|
||||
const OT_RS = 13;
|
||||
const OT_Coeng = 14;
|
||||
const OT_Repha = 15;
|
||||
const OT_Ra = 16;
|
||||
|
||||
// Based on sea_category used to make string to find syllables
|
||||
// OT_ to string character (using e.g. OT_C from INDIC) hb-ot-shape-complex-sea-private.hh
|
||||
public static $sea_category_char = array(
|
||||
'x',
|
||||
'C',
|
||||
'V',
|
||||
'T',
|
||||
'H',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'A',
|
||||
'x',
|
||||
'G',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'M',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'R',
|
||||
'x',
|
||||
'x',
|
||||
'x',
|
||||
'a',
|
||||
'b',
|
||||
'p',
|
||||
't',
|
||||
);
|
||||
|
||||
|
||||
/* Visual positions in a syllable from left to right. */
|
||||
// sea_position
|
||||
const POS_START = 0;
|
||||
|
||||
const POS_RA_TO_BECOME_REPH = 1;
|
||||
const POS_PRE_M = 2;
|
||||
const POS_PRE_C = 3;
|
||||
|
||||
const POS_BASE_C = 4;
|
||||
const POS_AFTER_MAIN = 5;
|
||||
|
||||
const POS_ABOVE_C = 6;
|
||||
|
||||
const POS_BEFORE_SUB = 7;
|
||||
const POS_BELOW_C = 8;
|
||||
const POS_AFTER_SUB = 9;
|
||||
|
||||
const POS_BEFORE_POST = 10;
|
||||
const POS_POST_C = 11;
|
||||
const POS_AFTER_POST = 12;
|
||||
|
||||
const POS_FINAL_C = 13;
|
||||
const POS_SMVD = 14;
|
||||
|
||||
const POS_END = 15;
|
||||
|
||||
|
||||
|
||||
public static function set_sea_properties(&$info, $scriptblock ) {
|
||||
$u = $info['uni'];
|
||||
$type = self::sea_get_categories($u);
|
||||
$cat = ($type & 0x7F);
|
||||
$pos = ($type >> 8);
|
||||
|
||||
/*
|
||||
* Re-assign category
|
||||
*/
|
||||
// Medial Ra
|
||||
if ($u == 0x1A55 || $u == 0xAA34) { $cat = self::OT_MR; }
|
||||
|
||||
/*
|
||||
* Re-assign position.
|
||||
*/
|
||||
if ($cat == self::OT_M) { // definitely "OT_M" in HarfBuzz - although this does not seem to have been defined ? should be OT_MR
|
||||
switch ($pos) {
|
||||
case self::POS_PRE_C: $cat = self::OT_VPre; break;
|
||||
case self::POS_ABOVE_C: $cat = self::OT_VAbv; break;
|
||||
case self::POS_BELOW_C: $cat = self::OT_VBlw; break;
|
||||
case self::POS_POST_C: $cat = self::OT_VPst; break;
|
||||
}
|
||||
}
|
||||
|
||||
$info['sea_category'] = $cat;
|
||||
$info['sea_position'] = $pos;
|
||||
}
|
||||
|
||||
// syllable_type
|
||||
const CONSONANT_SYLLABLE = 0;
|
||||
const BROKEN_CLUSTER = 1;
|
||||
const NON_SEA_CLUSTER = 2;
|
||||
|
||||
|
||||
|
||||
public static function set_syllables(&$o, $s, &$broken_syllables) {
|
||||
$ptr = 0;
|
||||
$syllable_serial = 1;
|
||||
$broken_syllables = false;
|
||||
while($ptr < strlen($s)) {
|
||||
$match = '';
|
||||
$syllable_length = 1;
|
||||
$syllable_type = self::NON_SEA_CLUSTER ;
|
||||
|
||||
// CONSONANT_SYLLABLE Consonant syllable
|
||||
if (preg_match('/^(C|V|G)(p|a|b|t|HC|M|R|T|A)*/', substr($s,$ptr), $ma)) {
|
||||
$syllable_length = strlen($ma[0]);
|
||||
$syllable_type = self::CONSONANT_SYLLABLE ;
|
||||
}
|
||||
// BROKEN_CLUSTER syllable
|
||||
else if (preg_match('/^(p|a|b|t|HC|M|R|T|A)+/', substr($s,$ptr), $ma)) {
|
||||
$syllable_length = strlen($ma[0]);
|
||||
$syllable_type = self::BROKEN_CLUSTER ;
|
||||
$broken_syllables = true;
|
||||
}
|
||||
|
||||
for ($i = $ptr; $i < $ptr+$syllable_length; $i++) { $o[$i]['syllable'] = ($syllable_serial << 4) | $syllable_type; }
|
||||
$ptr += $syllable_length ;
|
||||
$syllable_serial++;
|
||||
if ($syllable_serial == 16) $syllable_serial = 1;
|
||||
}
|
||||
}
|
||||
|
||||
public static function initial_reordering(&$info, $GSUBdata, $broken_syllables, $scriptblock, $dottedcircle) {
|
||||
|
||||
if ($broken_syllables && $dottedcircle) { self::insert_dotted_circles ($info, $dottedcircle); }
|
||||
|
||||
$count = count($info);
|
||||
if (!$count) return;
|
||||
$last = 0;
|
||||
$last_syllable = $info[0]['syllable'];
|
||||
for ($i = 1; $i < $count; $i++) {
|
||||
if ($last_syllable != $info[$i]['syllable']) {
|
||||
self::initial_reordering_syllable ($info, $GSUBdata, $scriptblock, $last, $i);
|
||||
$last = $i;
|
||||
$last_syllable = $info[$last]['syllable'];
|
||||
}
|
||||
}
|
||||
self::initial_reordering_syllable($info, $GSUBdata, $scriptblock, $last, $count);
|
||||
}
|
||||
|
||||
public static function insert_dotted_circles(&$info, $dottedcircle) {
|
||||
$idx = 0;
|
||||
$last_syllable = 0;
|
||||
while ($idx < count($info)) {
|
||||
$syllable = $info[$idx]['syllable'];
|
||||
$syllable_type = ($syllable & 0x0F);
|
||||
if ($last_syllable != $syllable && $syllable_type == self::BROKEN_CLUSTER) {
|
||||
$last_syllable = $syllable;
|
||||
$dottedcircle[0]['syllable'] = $info[$idx]['syllable'];
|
||||
array_splice($info, $idx, 0, $dottedcircle);
|
||||
}
|
||||
else
|
||||
$idx++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static function initial_reordering_syllable (&$info, $GSUBdata, $scriptblock, $start, $end) {
|
||||
/* broken_cluster: We already inserted dotted-circles, so just call the standalone_cluster. */
|
||||
|
||||
$syllable_type = ($info[$start]['syllable'] & 0x0F);
|
||||
if ($syllable_type==self::NON_SEA_CLUSTER ) { return; }
|
||||
if ($syllable_type==self::BROKEN_CLUSTER) {
|
||||
/* For dotted-circle, this is what Uniscribe does:
|
||||
* If dotted-circle is the last glyph, it just does nothing. */
|
||||
if ($info[$end - 1]['sea_category'] == self::OT_GB) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$base = $start;
|
||||
$i = $start;
|
||||
for (; $i < $base; $i++)
|
||||
$info[$i]['sea_position'] = self::POS_PRE_C;
|
||||
if ($i < $end) {
|
||||
$info[$i]['sea_position'] = self::POS_BASE_C;
|
||||
$i++;
|
||||
}
|
||||
for (; $i < $end; $i++) {
|
||||
if ($info[$i]['sea_category'] == self::OT_MR) { /* Pre-base reordering */
|
||||
$info[$i]['sea_position'] = self::POS_PRE_C;
|
||||
continue;
|
||||
}
|
||||
if ($info[$i]['sea_category'] == self::OT_VPre) { /* Left matra */
|
||||
$info[$i]['sea_position'] = self::POS_PRE_M;
|
||||
continue;
|
||||
}
|
||||
$info[$i]['sea_position'] = self::POS_AFTER_MAIN;
|
||||
}
|
||||
|
||||
/* Sit tight, rock 'n roll! */
|
||||
self::bubble_sort ($info, $start, $end - $start);
|
||||
|
||||
}
|
||||
|
||||
public static function final_reordering (&$info, $GSUBdata, $scriptblock) {
|
||||
$count = count($info);
|
||||
if (!$count) return;
|
||||
$last = 0;
|
||||
$last_syllable = $info[0]['syllable'];
|
||||
for ($i = 1; $i < $count; $i++) {
|
||||
if ($last_syllable != $info[$i]['syllable']) {
|
||||
self::final_reordering_syllable ($info, $GSUBdata, $scriptblock, $last, $i);
|
||||
$last = $i;
|
||||
$last_syllable = $info[$last]['syllable'];
|
||||
}
|
||||
}
|
||||
self::final_reordering_syllable ($info, $GSUBdata, $scriptblock, $last, $count);
|
||||
|
||||
}
|
||||
|
||||
public static function final_reordering_syllable (&$info, $GSUBdata, $scriptblock, $start, $end) {
|
||||
/*
|
||||
* Nothing to do here at present!
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static $sea_table = array(
|
||||
|
||||
/* New Tai Lue (1980..19DF) */
|
||||
|
||||
/* 1980 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1988 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1990 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1998 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 19A0 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 19A8 */ 3841, 3841, 3841, 3841, 3840, 3840, 3840, 3840,
|
||||
/* 19B0 */ 2823, 2823, 2823, 2823, 2823, 775, 775, 775,
|
||||
/* 19B8 */ 2823, 2823, 775, 2823, 2823, 2823, 2823, 2823,
|
||||
/* 19C0 */ 2823, 3857, 3857, 3857, 3857, 3857, 3857, 3857,
|
||||
/* 19C8 */ 3843, 3843, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 19D0 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 19D8 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
|
||||
/* Tai Tham (1A20..1AAF) */
|
||||
|
||||
/* 1A20 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1A28 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1A30 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1A38 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1A40 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* 1A48 */ 3841, 3841, 3841, 3841, 3841, 3842, 3842, 3842,
|
||||
/* 1A50 */3842, 3842, 3842, 3841, 3841, 3857, 3857, 3857,
|
||||
/* 1A58 */ 3857, 3857, 3857, 3857, 3857, 3857, 3857, 3840,
|
||||
/* 1A60 */ 3844, 2823, 1543, 2823, 2823, 1543, 1543, 1543,
|
||||
/* 1A68 */ 1543, 2055, 2055, 1543, 2055, 2823, 775, 775,
|
||||
/* 1A70 */ 775, 775, 775, 1543, 1543, 3843, 3843, 3843,
|
||||
/* 1A78 */ 3843, 3843, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1A80 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1A88 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1A90 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1A98 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1AA0 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* 1AA8 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
|
||||
/* Cham (AA00..AA5F) */
|
||||
|
||||
/* AA00 */ 3842, 3842, 3842, 3842, 3842, 3842, 3841, 3841,
|
||||
/* AA08 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* AA10 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* AA18 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* AA20 */ 3841, 3841, 3841, 3841, 3841, 3841, 3841, 3841,
|
||||
/* AA28 */ 3841, 1543, 1543, 1543, 1543, 2055, 1543, 775,
|
||||
/* AA30 */ 775, 1543, 2055, 3857, 3857, 3857, 3857, 3840,
|
||||
/* AA38 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* AA40 */ 3857, 3857, 3857, 3857, 3857, 3857, 3857, 3857,
|
||||
/* AA48 */ 3857, 3857, 3857, 3857, 3857, 3857, 3840, 3840,
|
||||
/* AA50 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
/* AA58 */ 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
public static function sea_get_categories ($u) {
|
||||
if (0x1980 <= $u && $u <= 0x19DF) return self::$sea_table[$u - 0x1980]; // offset 0 for New Tai Lue
|
||||
if (0x1A20 <= $u && $u <= 0x1AAF) return self::$sea_table[$u - 0x1A20 + 96]; // offset for Tai Tham
|
||||
if (0xAA00 <= $u && $u <= 0xAA5F) return self::$sea_table[$u - 0xAA00 + 96 + 144]; // Cham
|
||||
if ($u == 0x00A0) return 3851; // (ISC_CP | (IMC_x << 8))
|
||||
if ($u == 0x25CC) return 3851; // (ISC_CP | (IMC_x << 8))
|
||||
return 3840; // (ISC_x | (IMC_x << 8))
|
||||
}
|
||||
|
||||
|
||||
public static function bubble_sort(&$arr, $start, $len) {
|
||||
if ($len<2) { return;}
|
||||
$k = $start+$len-2;
|
||||
while ($k >= $start) {
|
||||
for ($j=$start; $j<=$k; $j++) {
|
||||
if ($arr[$j]['sea_position'] > $arr[$j + 1]['sea_position']) {
|
||||
$t = $arr[$j];
|
||||
$arr[$j] = $arr[$j + 1];
|
||||
$arr[$j + 1] = $t;
|
||||
}
|
||||
}
|
||||
$k--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // end Class
|
||||
|
||||
?>
|
||||
@ -1,509 +0,0 @@
|
||||
<?php
|
||||
|
||||
class tocontents {
|
||||
|
||||
var $mpdf = null;
|
||||
var $_toc;
|
||||
var $TOCmark;
|
||||
var $TOCoutdent; // mPDF 5.6.31
|
||||
var $TOCpreHTML;
|
||||
var $TOCpostHTML;
|
||||
var $TOCbookmarkText;
|
||||
var $TOCusePaging;
|
||||
var $TOCuseLinking;
|
||||
var $TOCorientation;
|
||||
var $TOC_margin_left;
|
||||
var $TOC_margin_right;
|
||||
var $TOC_margin_top;
|
||||
var $TOC_margin_bottom;
|
||||
var $TOC_margin_header;
|
||||
var $TOC_margin_footer;
|
||||
var $TOC_odd_header_name;
|
||||
var $TOC_even_header_name;
|
||||
var $TOC_odd_footer_name;
|
||||
var $TOC_even_footer_name;
|
||||
var $TOC_odd_header_value;
|
||||
var $TOC_even_header_value;
|
||||
var $TOC_odd_footer_value;
|
||||
var $TOC_even_footer_value;
|
||||
var $TOC_page_selector;
|
||||
var $TOC_resetpagenum; // mPDF 6
|
||||
var $TOC_pagenumstyle; // mPDF 6
|
||||
var $TOC_suppress; // mPDF 6
|
||||
var $m_TOC;
|
||||
|
||||
function tocontents(&$mpdf) {
|
||||
$this->mpdf = $mpdf;
|
||||
$this->_toc=array();
|
||||
$this->TOCmark = 0;
|
||||
$this->m_TOC=array();
|
||||
}
|
||||
|
||||
function TOCpagebreak($tocfont='', $tocfontsize='', $tocindent='', $TOCusePaging=true, $TOCuseLinking='', $toc_orientation='', $toc_mgl='',$toc_mgr='',$toc_mgt='',$toc_mgb='',$toc_mgh='',$toc_mgf='',$toc_ohname='',$toc_ehname='',$toc_ofname='',$toc_efname='',$toc_ohvalue=0,$toc_ehvalue=0,$toc_ofvalue=0, $toc_efvalue=0, $toc_preHTML='', $toc_postHTML='', $toc_bookmarkText='', $resetpagenum='', $pagenumstyle='', $suppress='', $orientation='', $mgl='',$mgr='',$mgt='',$mgb='',$mgh='',$mgf='',$ohname='',$ehname='',$ofname='',$efname='',$ohvalue=0,$ehvalue=0,$ofvalue=0,$efvalue=0, $toc_id=0, $pagesel='', $toc_pagesel='', $sheetsize='', $toc_sheetsize='', $tocoutdent='', $toc_resetpagenum='', $toc_pagenumstyle='', $toc_suppress='') { // mPDF 5.6.19 // mPDF 6
|
||||
if (strtoupper($toc_id)=='ALL') { $toc_id = '_mpdf_all'; }
|
||||
else if (!$toc_id) { $toc_id = 0; }
|
||||
else { $toc_id = strtolower($toc_id); }
|
||||
|
||||
if ($TOCusePaging === false || strtolower($TOCusePaging) == "off" || $TOCusePaging === 0 || $TOCusePaging === "0" || $TOCusePaging === "") { $TOCusePaging = false; }
|
||||
else { $TOCusePaging = true; }
|
||||
if (!$TOCuseLinking) { $TOCuseLinking = false; }
|
||||
if ($toc_id) {
|
||||
$this->m_TOC[$toc_id]['TOCmark'] = $this->mpdf->page;
|
||||
$this->m_TOC[$toc_id]['TOCoutdent'] = $tocoutdent;
|
||||
$this->m_TOC[$toc_id]['TOCorientation'] = $toc_orientation;
|
||||
$this->m_TOC[$toc_id]['TOCuseLinking'] = $TOCuseLinking;
|
||||
$this->m_TOC[$toc_id]['TOCusePaging'] = $TOCusePaging;
|
||||
|
||||
if ($toc_preHTML) { $this->m_TOC[$toc_id]['TOCpreHTML'] = $toc_preHTML; }
|
||||
if ($toc_postHTML) { $this->m_TOC[$toc_id]['TOCpostHTML'] = $toc_postHTML; }
|
||||
if ($toc_bookmarkText) { $this->m_TOC[$toc_id]['TOCbookmarkText'] = $toc_bookmarkText; }
|
||||
|
||||
$this->m_TOC[$toc_id]['TOC_margin_left'] = $toc_mgl;
|
||||
$this->m_TOC[$toc_id]['TOC_margin_right'] = $toc_mgr;
|
||||
$this->m_TOC[$toc_id]['TOC_margin_top'] = $toc_mgt;
|
||||
$this->m_TOC[$toc_id]['TOC_margin_bottom'] = $toc_mgb;
|
||||
$this->m_TOC[$toc_id]['TOC_margin_header'] = $toc_mgh;
|
||||
$this->m_TOC[$toc_id]['TOC_margin_footer'] = $toc_mgf;
|
||||
$this->m_TOC[$toc_id]['TOC_odd_header_name'] = $toc_ohname;
|
||||
$this->m_TOC[$toc_id]['TOC_even_header_name'] = $toc_ehname;
|
||||
$this->m_TOC[$toc_id]['TOC_odd_footer_name'] = $toc_ofname;
|
||||
$this->m_TOC[$toc_id]['TOC_even_footer_name'] = $toc_efname;
|
||||
$this->m_TOC[$toc_id]['TOC_odd_header_value'] = $toc_ohvalue;
|
||||
$this->m_TOC[$toc_id]['TOC_even_header_value'] = $toc_ehvalue;
|
||||
$this->m_TOC[$toc_id]['TOC_odd_footer_value'] = $toc_ofvalue;
|
||||
$this->m_TOC[$toc_id]['TOC_even_footer_value'] = $toc_efvalue;
|
||||
$this->m_TOC[$toc_id]['TOC_page_selector'] = $toc_pagesel;
|
||||
$this->m_TOC[$toc_id]['TOC_resetpagenum'] = $toc_resetpagenum; // mPDF 6
|
||||
$this->m_TOC[$toc_id]['TOC_pagenumstyle'] = $toc_pagenumstyle; // mPDF 6
|
||||
$this->m_TOC[$toc_id]['TOC_suppress'] = $toc_suppress; // mPDF 6
|
||||
$this->m_TOC[$toc_id]['TOCsheetsize'] = $toc_sheetsize;
|
||||
}
|
||||
else {
|
||||
$this->TOCmark = $this->mpdf->page;
|
||||
$this->TOCoutdent = $tocoutdent;
|
||||
$this->TOCorientation = $toc_orientation;
|
||||
$this->TOCuseLinking = $TOCuseLinking;
|
||||
$this->TOCusePaging = $TOCusePaging;
|
||||
|
||||
if ($toc_preHTML) { $this->TOCpreHTML = $toc_preHTML; }
|
||||
if ($toc_postHTML) { $this->TOCpostHTML = $toc_postHTML; }
|
||||
if ($toc_bookmarkText) { $this->TOCbookmarkText = $toc_bookmarkText; }
|
||||
|
||||
$this->TOC_margin_left = $toc_mgl;
|
||||
$this->TOC_margin_right = $toc_mgr;
|
||||
$this->TOC_margin_top = $toc_mgt;
|
||||
$this->TOC_margin_bottom = $toc_mgb;
|
||||
$this->TOC_margin_header = $toc_mgh;
|
||||
$this->TOC_margin_footer = $toc_mgf;
|
||||
$this->TOC_odd_header_name = $toc_ohname;
|
||||
$this->TOC_even_header_name = $toc_ehname;
|
||||
$this->TOC_odd_footer_name = $toc_ofname;
|
||||
$this->TOC_even_footer_name = $toc_efname;
|
||||
$this->TOC_odd_header_value = $toc_ohvalue;
|
||||
$this->TOC_even_header_value = $toc_ehvalue;
|
||||
$this->TOC_odd_footer_value = $toc_ofvalue;
|
||||
$this->TOC_even_footer_value = $toc_efvalue;
|
||||
$this->TOC_page_selector = $toc_pagesel;
|
||||
$this->TOC_resetpagenum = $toc_resetpagenum; // mPDF 6
|
||||
$this->TOC_pagenumstyle = $toc_pagenumstyle; // mPDF 6
|
||||
$this->TOC_suppress = $toc_suppress; // mPDF 6
|
||||
$this->TOCsheetsize = $toc_sheetsize;
|
||||
}
|
||||
}
|
||||
|
||||
// Initiate, and Mark a place for the Table of Contents to be inserted
|
||||
function TOC($tocfont='', $tocfontsize=0, $tocindent=0, $resetpagenum='', $pagenumstyle='', $suppress='', $toc_orientation='', $TOCusePaging=true, $TOCuseLinking=false, $toc_id=0, $tocoutdent='', $toc_resetpagenum='', $toc_pagenumstyle='', $toc_suppress='') { // mPDF 5.6.19 // mPDF 6
|
||||
if (strtoupper($toc_id)=='ALL') { $toc_id = '_mpdf_all'; }
|
||||
else if (!$toc_id) { $toc_id = 0; }
|
||||
else { $toc_id = strtolower($toc_id); }
|
||||
// To use odd and even pages
|
||||
// Cannot start table of contents on an even page
|
||||
if (($this->mpdf->mirrorMargins) && (($this->mpdf->page)%2==0)) { // EVEN
|
||||
if ($this->mpdf->ColActive) {
|
||||
if (count($this->mpdf->columnbuffer)) { $this->mpdf->printcolumnbuffer(); }
|
||||
}
|
||||
$this->mpdf->AddPage($this->mpdf->CurOrientation,'',$resetpagenum, $pagenumstyle, $suppress);
|
||||
}
|
||||
else {
|
||||
$this->mpdf->PageNumSubstitutions[] = array('from'=>$this->mpdf->page, 'reset'=> $resetpagenum, 'type'=>$pagenumstyle, 'suppress'=>$suppress);
|
||||
}
|
||||
if ($toc_id) {
|
||||
$this->m_TOC[$toc_id]['TOCmark'] = $this->mpdf->page;
|
||||
$this->m_TOC[$toc_id]['TOCoutdent'] = $tocoutdent;
|
||||
$this->m_TOC[$toc_id]['TOCorientation'] = $toc_orientation;
|
||||
$this->m_TOC[$toc_id]['TOCuseLinking'] = $TOCuseLinking;
|
||||
$this->m_TOC[$toc_id]['TOCusePaging'] = $TOCusePaging;
|
||||
$this->m_TOC[$toc_id]['TOC_resetpagenum'] = $toc_resetpagenum; // mPDF 6
|
||||
$this->m_TOC[$toc_id]['TOC_pagenumstyle'] = $toc_pagenumstyle; // mPDF 6
|
||||
$this->m_TOC[$toc_id]['TOC_suppress'] = $toc_suppress; // mPDF 6
|
||||
}
|
||||
else {
|
||||
$this->TOCmark = $this->mpdf->page;
|
||||
$this->TOCoutdent = $tocoutdent;
|
||||
$this->TOCorientation = $toc_orientation;
|
||||
$this->TOCuseLinking = $TOCuseLinking;
|
||||
$this->TOCusePaging = $TOCusePaging;
|
||||
$this->TOC_resetpagenum = $toc_resetpagenum; // mPDF 6
|
||||
$this->TOC_pagenumstyle = $toc_pagenumstyle; // mPDF 6
|
||||
$this->TOC_suppress = $toc_suppress; // mPDF 6
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function insertTOC() {
|
||||
$notocs = 0;
|
||||
if ($this->TOCmark) { $notocs = 1; }
|
||||
$notocs += count($this->m_TOC);
|
||||
|
||||
if ($notocs==0) { return; }
|
||||
|
||||
if (count($this->m_TOC)) { reset($this->m_TOC); }
|
||||
$added_toc_pages = 0;
|
||||
|
||||
if ($this->mpdf->ColActive) { $this->mpdf->SetColumns(0); }
|
||||
if (($this->mpdf->mirrorMargins) && (($this->mpdf->page)%2==1)) { // ODD
|
||||
$this->mpdf->AddPage($this->mpdf->CurOrientation);
|
||||
$extrapage = true;
|
||||
}
|
||||
else { $extrapage = false; }
|
||||
|
||||
for ($toci = 0; $toci<$notocs; $toci++) {
|
||||
if ($toci==0 && $this->TOCmark) {
|
||||
$toc_id = 0;
|
||||
$toc_page = $this->TOCmark;
|
||||
$tocoutdent = $this->TOCoutdent;
|
||||
$toc_orientation = $this->TOCorientation;
|
||||
$TOCuseLinking = $this->TOCuseLinking;
|
||||
$TOCusePaging = $this->TOCusePaging;
|
||||
$toc_preHTML = $this->TOCpreHTML;
|
||||
$toc_postHTML = $this->TOCpostHTML;
|
||||
$toc_bookmarkText = $this->TOCbookmarkText;
|
||||
$toc_mgl = $this->TOC_margin_left;
|
||||
$toc_mgr = $this->TOC_margin_right;
|
||||
$toc_mgt = $this->TOC_margin_top;
|
||||
$toc_mgb = $this->TOC_margin_bottom;
|
||||
$toc_mgh = $this->TOC_margin_header;
|
||||
$toc_mgf = $this->TOC_margin_footer;
|
||||
$toc_ohname = $this->TOC_odd_header_name;
|
||||
$toc_ehname = $this->TOC_even_header_name;
|
||||
$toc_ofname = $this->TOC_odd_footer_name;
|
||||
$toc_efname = $this->TOC_even_footer_name;
|
||||
$toc_ohvalue = $this->TOC_odd_header_value;
|
||||
$toc_ehvalue = $this->TOC_even_header_value;
|
||||
$toc_ofvalue = $this->TOC_odd_footer_value;
|
||||
$toc_efvalue = $this->TOC_even_footer_value;
|
||||
$toc_page_selector = $this->TOC_page_selector;
|
||||
$toc_resetpagenum = $this->TOC_resetpagenum; // mPDF 6
|
||||
$toc_pagenumstyle = $this->TOC_pagenumstyle; // mPDF 6
|
||||
$toc_suppress = $this->TOC_suppress; // mPDF 6
|
||||
$toc_sheet_size = (isset($this->TOCsheetsize) ? $this->TOCsheetsize : '');
|
||||
}
|
||||
else {
|
||||
$arr = current($this->m_TOC);
|
||||
|
||||
$toc_id = key($this->m_TOC);
|
||||
$toc_page = $this->m_TOC[$toc_id]['TOCmark'];
|
||||
$tocoutdent = $this->m_TOC[$toc_id]['TOCoutdent'];
|
||||
$toc_orientation = $this->m_TOC[$toc_id]['TOCorientation'];
|
||||
$TOCuseLinking = $this->m_TOC[$toc_id]['TOCuseLinking'];
|
||||
$TOCusePaging = $this->m_TOC[$toc_id]['TOCusePaging'];
|
||||
if (isset($this->m_TOC[$toc_id]['TOCpreHTML'])) { $toc_preHTML = $this->m_TOC[$toc_id]['TOCpreHTML']; }
|
||||
else { $toc_preHTML = ''; }
|
||||
if (isset($this->m_TOC[$toc_id]['TOCpostHTML'])) { $toc_postHTML = $this->m_TOC[$toc_id]['TOCpostHTML']; }
|
||||
else { $toc_postHTML = ''; }
|
||||
if (isset($this->m_TOC[$toc_id]['TOCbookmarkText'])) { $toc_bookmarkText = $this->m_TOC[$toc_id]['TOCbookmarkText']; }
|
||||
else { $toc_bookmarkText = ''; } // *BOOKMARKS*
|
||||
$toc_mgl = $this->m_TOC[$toc_id]['TOC_margin_left'];
|
||||
$toc_mgr = $this->m_TOC[$toc_id]['TOC_margin_right'];
|
||||
$toc_mgt = $this->m_TOC[$toc_id]['TOC_margin_top'];
|
||||
$toc_mgb = $this->m_TOC[$toc_id]['TOC_margin_bottom'];
|
||||
$toc_mgh = $this->m_TOC[$toc_id]['TOC_margin_header'];
|
||||
$toc_mgf = $this->m_TOC[$toc_id]['TOC_margin_footer'];
|
||||
$toc_ohname = $this->m_TOC[$toc_id]['TOC_odd_header_name'];
|
||||
$toc_ehname = $this->m_TOC[$toc_id]['TOC_even_header_name'];
|
||||
$toc_ofname = $this->m_TOC[$toc_id]['TOC_odd_footer_name'];
|
||||
$toc_efname = $this->m_TOC[$toc_id]['TOC_even_footer_name'];
|
||||
$toc_ohvalue = $this->m_TOC[$toc_id]['TOC_odd_header_value'];
|
||||
$toc_ehvalue = $this->m_TOC[$toc_id]['TOC_even_header_value'];
|
||||
$toc_ofvalue = $this->m_TOC[$toc_id]['TOC_odd_footer_value'];
|
||||
$toc_efvalue = $this->m_TOC[$toc_id]['TOC_even_footer_value'];
|
||||
$toc_page_selector = $this->m_TOC[$toc_id]['TOC_page_selector'];
|
||||
$toc_resetpagenum = $this->m_TOC[$toc_id]['TOC_resetpagenum']; // mPDF 6
|
||||
$toc_pagenumstyle = $this->m_TOC[$toc_id]['TOC_pagenumstyle']; // mPDF 6
|
||||
$toc_suppress = $this->m_TOC[$toc_id]['TOC_suppress']; // mPDF 6
|
||||
$toc_sheet_size = (isset($this->m_TOC[$toc_id]['TOCsheetsize']) ? $this->m_TOC[$toc_id]['TOCsheetsize'] : '');
|
||||
next($this->m_TOC);
|
||||
}
|
||||
|
||||
// mPDF 5.6.31
|
||||
if (!$toc_orientation) { $toc_orientation= $this->mpdf->DefOrientation; }
|
||||
|
||||
// mPDF 6 number style and suppress now picked up from section preceding ToC
|
||||
list($tp_pagenumstyle, $tp_suppress, $tp_reset) = $this->mpdf->docPageSettings($toc_page-1);
|
||||
|
||||
if ($toc_resetpagenum) $tp_reset = $toc_resetpagenum; // mPDF 6
|
||||
if ($toc_pagenumstyle) $tp_pagenumstyle = $toc_pagenumstyle; // mPDF 6
|
||||
if ($toc_suppress || $toc_suppress==='0') $tp_suppress = $toc_suppress; // mPDF 6
|
||||
|
||||
$this->mpdf->AddPage($toc_orientation, '', $tp_reset, $tp_pagenumstyle, $tp_suppress, $toc_mgl, $toc_mgr, $toc_mgt, $toc_mgb, $toc_mgh, $toc_mgf, $toc_ohname, $toc_ehname, $toc_ofname, $toc_efname, $toc_ohvalue, $toc_ehvalue, $toc_ofvalue, $toc_efvalue, $toc_page_selector, $toc_sheet_size ); // mPDF 6
|
||||
|
||||
|
||||
$this->mpdf->writingToC = true; // mPDF 5.6.38
|
||||
// mPDF 5.6.31
|
||||
$tocstart=count($this->mpdf->pages);
|
||||
if (isset($toc_preHTML) && $toc_preHTML) { $this->mpdf->WriteHTML($toc_preHTML); }
|
||||
|
||||
|
||||
// mPDF 5.6.19
|
||||
$html ='<div class="mpdf_toc" id="mpdf_toc_'.$toc_id.'">';
|
||||
foreach($this->_toc as $t) {
|
||||
if ($t['toc_id']==='_mpdf_all' || $t['toc_id']===$toc_id ) {
|
||||
$html .= '<div class="mpdf_toc_level_'.$t['l'].'">';
|
||||
if ($TOCuseLinking) { $html .= '<a class="mpdf_toc_a" href="#__mpdfinternallink_'.$t['link'].'">'; }
|
||||
$html .= '<span class="mpdf_toc_t_level_'.$t['l'].'">'.$t['t'].'</span>';
|
||||
if ($TOCuseLinking) { $html .= '</a>'; }
|
||||
if (!$tocoutdent) { $tocoutdent = '0'; }
|
||||
if ($TOCusePaging) { $html .= ' <dottab outdent="'.$tocoutdent.'" /> ';
|
||||
if ($TOCuseLinking) { $html .= '<a class="mpdf_toc_a" href="#__mpdfinternallink_'.$t['link'].'">'; }
|
||||
$html .= '<span class="mpdf_toc_p_level_'.$t['l'].'">'.$this->mpdf->docPageNum($t['p']).'</span>';
|
||||
if ($TOCuseLinking) { $html .= '</a>'; }
|
||||
}
|
||||
$html .= '</div>';
|
||||
}
|
||||
}
|
||||
$html .= '</div>';
|
||||
$this->mpdf->WriteHTML($html);
|
||||
|
||||
if (isset($toc_postHTML) && $toc_postHTML) { $this->mpdf->WriteHTML($toc_postHTML); }
|
||||
$this->mpdf->writingToC = false; // mPDF 5.6.38
|
||||
$this->mpdf->AddPage($toc_orientation,'E');
|
||||
|
||||
$n_toc = $this->mpdf->page - $tocstart + 1;
|
||||
|
||||
if ($toci==0 && $this->TOCmark) {
|
||||
$TOC_start = $tocstart ;
|
||||
$TOC_end = $this->mpdf->page;
|
||||
$TOC_npages = $n_toc;
|
||||
}
|
||||
else {
|
||||
$this->m_TOC[$toc_id]['start'] = $tocstart ;
|
||||
$this->m_TOC[$toc_id]['end'] = $this->mpdf->page;
|
||||
$this->m_TOC[$toc_id]['npages'] = $n_toc;
|
||||
}
|
||||
}
|
||||
|
||||
$s = '';
|
||||
|
||||
$s .= $this->mpdf->PrintBodyBackgrounds();
|
||||
|
||||
$s .= $this->mpdf->PrintPageBackgrounds();
|
||||
$this->mpdf->pages[$this->mpdf->page] = preg_replace('/(___BACKGROUND___PATTERNS'.$this->mpdf->uniqstr.')/', "\n".$s."\n".'\\1', $this->mpdf->pages[$this->mpdf->page]);
|
||||
$this->mpdf->pageBackgrounds = array();
|
||||
|
||||
//Page footer
|
||||
$this->mpdf->InFooter=true;
|
||||
$this->mpdf->Footer();
|
||||
$this->mpdf->InFooter=false;
|
||||
|
||||
// 2nd time through to move pages etc.
|
||||
$added_toc_pages = 0;
|
||||
if (count($this->m_TOC)) { reset($this->m_TOC); }
|
||||
|
||||
for ($toci = 0; $toci<$notocs; $toci++) {
|
||||
if ($toci==0 && $this->TOCmark) {
|
||||
$toc_id = 0;
|
||||
$toc_page = $this->TOCmark + $added_toc_pages;
|
||||
$toc_orientation = $this->TOCorientation;
|
||||
$TOCuseLinking = $this->TOCuseLinking;
|
||||
$TOCusePaging = $this->TOCusePaging;
|
||||
$toc_bookmarkText = $this->TOCbookmarkText; // *BOOKMARKS*
|
||||
|
||||
$tocstart = $TOC_start ;
|
||||
$tocend = $n = $TOC_end;
|
||||
$n_toc = $TOC_npages;
|
||||
}
|
||||
else {
|
||||
$arr = current($this->m_TOC);
|
||||
|
||||
$toc_id = key($this->m_TOC);
|
||||
$toc_page = $this->m_TOC[$toc_id]['TOCmark'] + $added_toc_pages;
|
||||
$toc_orientation = $this->m_TOC[$toc_id]['TOCorientation'];
|
||||
$TOCuseLinking = $this->m_TOC[$toc_id]['TOCuseLinking'];
|
||||
$TOCusePaging = $this->m_TOC[$toc_id]['TOCusePaging'];
|
||||
$toc_bookmarkText = $this->m_TOC[$toc_id]['TOCbookmarkText']; // *BOOKMARKS*
|
||||
|
||||
$tocstart = $this->m_TOC[$toc_id]['start'] ;
|
||||
$tocend = $n = $this->m_TOC[$toc_id]['end'] ;
|
||||
$n_toc = $this->m_TOC[$toc_id]['npages'] ;
|
||||
|
||||
next($this->m_TOC);
|
||||
}
|
||||
|
||||
// Now pages moved
|
||||
$added_toc_pages += $n_toc;
|
||||
|
||||
$this->mpdf->MovePages($toc_page, $tocstart, $tocend) ;
|
||||
$this->mpdf->pgsIns[$toc_page] = $tocend - $tocstart + 1;
|
||||
|
||||
/*-- BOOKMARKS --*/
|
||||
// Insert new Bookmark for Bookmark
|
||||
if ($toc_bookmarkText) {
|
||||
$insert = -1;
|
||||
foreach($this->mpdf->BMoutlines as $i=>$o) {
|
||||
if($o['p']<$toc_page) { // i.e. before point of insertion
|
||||
$insert = $i;
|
||||
}
|
||||
}
|
||||
$txt = $this->mpdf->purify_utf8_text($toc_bookmarkText);
|
||||
if ($this->mpdf->text_input_as_HTML) {
|
||||
$txt = $this->mpdf->all_entities_to_utf8($txt);
|
||||
}
|
||||
$newBookmark[0] = array('t'=>$txt,'l'=>0,'y'=>0,'p'=>$toc_page );
|
||||
array_splice($this->mpdf->BMoutlines,($insert+1),0,$newBookmark);
|
||||
}
|
||||
/*-- END BOOKMARKS --*/
|
||||
|
||||
}
|
||||
|
||||
// Delete empty page that was inserted earlier
|
||||
if ($extrapage) {
|
||||
unset($this->mpdf->pages[count($this->mpdf->pages)]);
|
||||
$this->mpdf->page--; // Reset page pointer
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function openTagTOC($attr) {
|
||||
if (isset($attr['OUTDENT']) && $attr['OUTDENT']) { $tocoutdent = $attr['OUTDENT']; } else { $tocoutdent = ''; } // mPDF 5.6.19
|
||||
if (isset($attr['RESETPAGENUM']) && $attr['RESETPAGENUM']) { $resetpagenum = $attr['RESETPAGENUM']; } else { $resetpagenum = ''; }
|
||||
if (isset($attr['PAGENUMSTYLE']) && $attr['PAGENUMSTYLE']) { $pagenumstyle = $attr['PAGENUMSTYLE']; } else { $pagenumstyle= ''; }
|
||||
if (isset($attr['SUPPRESS']) && $attr['SUPPRESS']) { $suppress = $attr['SUPPRESS']; } else { $suppress = ''; }
|
||||
if (isset($attr['TOC-ORIENTATION']) && $attr['TOC-ORIENTATION']) { $toc_orientation = $attr['TOC-ORIENTATION']; } else { $toc_orientation = ''; }
|
||||
if (isset($attr['PAGING']) && (strtoupper($attr['PAGING'])=='OFF' || $attr['PAGING']==='0')) { $paging = false; }
|
||||
else { $paging = true; }
|
||||
if (isset($attr['LINKS']) && (strtoupper($attr['LINKS'])=='ON' || $attr['LINKS']==1)) { $links = true; }
|
||||
else { $links = false; }
|
||||
if (isset($attr['NAME']) && $attr['NAME']) { $toc_id = strtolower($attr['NAME']); } else { $toc_id = 0; }
|
||||
$this->TOC('',0,0,$resetpagenum, $pagenumstyle, $suppress, $toc_orientation, $paging, $links, $toc_id, $tocoutdent); // mPDF 5.6.19 5.6.31
|
||||
}
|
||||
|
||||
|
||||
function openTagTOCPAGEBREAK($attr) {
|
||||
if (isset($attr['NAME']) && $attr['NAME']) { $toc_id = strtolower($attr['NAME']); } else { $toc_id = 0; }
|
||||
if ($toc_id) {
|
||||
if (isset($attr['OUTDENT']) && $attr['OUTDENT']) { $this->m_TOC[$toc_id]['TOCoutdent'] = $attr['OUTDENT']; } else { $this->m_TOC[$toc_id]['TOCoutdent'] = ''; } // mPDF 5.6.19
|
||||
if (isset($attr['TOC-ORIENTATION']) && $attr['TOC-ORIENTATION']) { $this->m_TOC[$toc_id]['TOCorientation'] = $attr['TOC-ORIENTATION']; } else { $this->m_TOC[$toc_id]['TOCorientation'] = ''; }
|
||||
if (isset($attr['PAGING']) && (strtoupper($attr['PAGING'])=='OFF' || $attr['PAGING']==='0')) { $this->m_TOC[$toc_id]['TOCusePaging'] = false; }
|
||||
else { $this->m_TOC[$toc_id]['TOCusePaging'] = true; }
|
||||
if (isset($attr['LINKS']) && (strtoupper($attr['LINKS'])=='ON' || $attr['LINKS']==1)) { $this->m_TOC[$toc_id]['TOCuseLinking'] = true; }
|
||||
else { $this->m_TOC[$toc_id]['TOCuseLinking'] = false; }
|
||||
|
||||
$this->m_TOC[$toc_id]['TOC_margin_left'] = $this->m_TOC[$toc_id]['TOC_margin_right'] = $this->m_TOC[$toc_id]['TOC_margin_top'] = $this->m_TOC[$toc_id]['TOC_margin_bottom'] = $this->m_TOC[$toc_id]['TOC_margin_header'] = $this->m_TOC[$toc_id]['TOC_margin_footer'] = '';
|
||||
if (isset($attr['TOC-MARGIN-RIGHT'])) { $this->m_TOC[$toc_id]['TOC_margin_right'] = $this->mpdf->ConvertSize($attr['TOC-MARGIN-RIGHT'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-LEFT'])) { $this->m_TOC[$toc_id]['TOC_margin_left'] = $this->mpdf->ConvertSize($attr['TOC-MARGIN-LEFT'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-TOP'])) { $this->m_TOC[$toc_id]['TOC_margin_top'] = $this->mpdf->ConvertSize($attr['TOC-MARGIN-TOP'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-BOTTOM'])) { $this->m_TOC[$toc_id]['TOC_margin_bottom'] = $this->mpdf->ConvertSize($attr['TOC-MARGIN-BOTTOM'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-HEADER'])) { $this->m_TOC[$toc_id]['TOC_margin_header'] = $this->mpdf->ConvertSize($attr['TOC-MARGIN-HEADER'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-FOOTER'])) { $this->m_TOC[$toc_id]['TOC_margin_footer'] = $this->mpdf->ConvertSize($attr['TOC-MARGIN-FOOTER'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
$this->m_TOC[$toc_id]['TOC_odd_header_name'] = $this->m_TOC[$toc_id]['TOC_even_header_name'] = $this->m_TOC[$toc_id]['TOC_odd_footer_name'] = $this->m_TOC[$toc_id]['TOC_even_footer_name'] = '';
|
||||
if (isset($attr['TOC-ODD-HEADER-NAME']) && $attr['TOC-ODD-HEADER-NAME']) { $this->m_TOC[$toc_id]['TOC_odd_header_name'] = $attr['TOC-ODD-HEADER-NAME']; }
|
||||
if (isset($attr['TOC-EVEN-HEADER-NAME']) && $attr['TOC-EVEN-HEADER-NAME']) { $this->m_TOC[$toc_id]['TOC_even_header_name'] = $attr['TOC-EVEN-HEADER-NAME']; }
|
||||
if (isset($attr['TOC-ODD-FOOTER-NAME']) && $attr['TOC-ODD-FOOTER-NAME']) { $this->m_TOC[$toc_id]['TOC_odd_footer_name'] = $attr['TOC-ODD-FOOTER-NAME']; }
|
||||
if (isset($attr['TOC-EVEN-FOOTER-NAME']) && $attr['TOC-EVEN-FOOTER-NAME']) { $this->m_TOC[$toc_id]['TOC_even_footer_name'] = $attr['TOC-EVEN-FOOTER-NAME']; }
|
||||
$this->m_TOC[$toc_id]['TOC_odd_header_value'] = $this->m_TOC[$toc_id]['TOC_even_header_value'] = $this->m_TOC[$toc_id]['TOC_odd_footer_value'] = $this->m_TOC[$toc_id]['TOC_even_footer_value'] = 0;
|
||||
if (isset($attr['TOC-ODD-HEADER-VALUE']) && ($attr['TOC-ODD-HEADER-VALUE']=='1' || strtoupper($attr['TOC-ODD-HEADER-VALUE'])=='ON')) { $this->m_TOC[$toc_id]['TOC_odd_header_value'] = 1; }
|
||||
else if (isset($attr['TOC-ODD-HEADER-VALUE']) && ($attr['TOC-ODD-HEADER-VALUE']=='-1' || strtoupper($attr['TOC-ODD-HEADER-VALUE'])=='OFF')) { $this->m_TOC[$toc_id]['TOC_odd_header_value'] = -1; }
|
||||
if (isset($attr['TOC-EVEN-HEADER-VALUE']) && ($attr['TOC-EVEN-HEADER-VALUE']=='1' || strtoupper($attr['TOC-EVEN-HEADER-VALUE'])=='ON')) { $this->m_TOC[$toc_id]['TOC_even_header_value'] = 1; }
|
||||
else if (isset($attr['TOC-EVEN-HEADER-VALUE']) && ($attr['TOC-EVEN-HEADER-VALUE']=='-1' || strtoupper($attr['TOC-EVEN-HEADER-VALUE'])=='OFF')) { $this->m_TOC[$toc_id]['TOC_even_header_value'] = -1; }
|
||||
if (isset($attr['TOC-ODD-FOOTER-VALUE']) && ($attr['TOC-ODD-FOOTER-VALUE']=='1' || strtoupper($attr['TOC-ODD-FOOTER-VALUE'])=='ON')) { $this->m_TOC[$toc_id]['TOC_odd_footer_value'] = 1; }
|
||||
else if (isset($attr['TOC-ODD-FOOTER-VALUE']) && ($attr['TOC-ODD-FOOTER-VALUE']=='-1' || strtoupper($attr['TOC-ODD-FOOTER-VALUE'])=='OFF')) { $this->m_TOC[$toc_id]['TOC_odd_footer_value'] = -1; }
|
||||
if (isset($attr['TOC-EVEN-FOOTER-VALUE']) && ($attr['TOC-EVEN-FOOTER-VALUE']=='1' || strtoupper($attr['TOC-EVEN-FOOTER-VALUE'])=='ON')) { $this->m_TOC[$toc_id]['TOC_even_footer_value'] = 1; }
|
||||
else if (isset($attr['TOC-EVEN-FOOTER-VALUE']) && ($attr['TOC-EVEN-FOOTER-VALUE']=='-1' || strtoupper($attr['TOC-EVEN-FOOTER-VALUE'])=='OFF')) { $this->m_TOC[$toc_id]['TOC_even_footer_value'] = -1; }
|
||||
if (isset($attr['TOC-RESETPAGENUM']) && $attr['TOC-RESETPAGENUM']) { $this->m_TOC[$toc_id]['TOC_resetpagenum'] = $attr['TOC-RESETPAGENUM']; }
|
||||
else { $this->m_TOC[$toc_id]['TOC_resetpagenum'] = ''; } // mPDF 6
|
||||
if (isset($attr['TOC-PAGENUMSTYLE']) && $attr['TOC-PAGENUMSTYLE']) { $this->m_TOC[$toc_id]['TOC_pagenumstyle'] = $attr['TOC-PAGENUMSTYLE']; }
|
||||
else { $this->m_TOC[$toc_id]['TOC_pagenumstyle'] = ''; } // mPDF 6
|
||||
if (isset($attr['TOC-SUPPRESS']) && ($attr['TOC-SUPPRESS'] || $attr['TOC-SUPPRESS']==='0')) { $this->m_TOC[$toc_id]['TOC_suppress'] = $attr['TOC-SUPPRESS']; }
|
||||
else { $this->m_TOC[$toc_id]['TOC_suppress'] = ''; } // mPDF 6
|
||||
if (isset($attr['TOC-PAGE-SELECTOR']) && $attr['TOC-PAGE-SELECTOR']) { $this->m_TOC[$toc_id]['TOC_page_selector'] = $attr['TOC-PAGE-SELECTOR']; }
|
||||
else { $this->m_TOC[$toc_id]['TOC_page_selector'] = ''; }
|
||||
if (isset($attr['TOC-SHEET-SIZE']) && $attr['TOC-SHEET-SIZE']) { $this->m_TOC[$toc_id]['TOCsheetsize'] = $attr['TOC-SHEET-SIZE']; } else { $this->m_TOC[$toc_id]['TOCsheetsize'] = ''; }
|
||||
|
||||
|
||||
if (isset($attr['TOC-PREHTML']) && $attr['TOC-PREHTML']) { $this->m_TOC[$toc_id]['TOCpreHTML'] = htmlspecialchars_decode($attr['TOC-PREHTML'],ENT_QUOTES); }
|
||||
if (isset($attr['TOC-POSTHTML']) && $attr['TOC-POSTHTML']) { $this->m_TOC[$toc_id]['TOCpostHTML'] = htmlspecialchars_decode($attr['TOC-POSTHTML'],ENT_QUOTES); }
|
||||
|
||||
if (isset($attr['TOC-BOOKMARKTEXT']) && $attr['TOC-BOOKMARKTEXT']) { $this->m_TOC[$toc_id]['TOCbookmarkText'] = htmlspecialchars_decode($attr['TOC-BOOKMARKTEXT'],ENT_QUOTES); } // *BOOKMARKS*
|
||||
}
|
||||
else {
|
||||
if (isset($attr['OUTDENT']) && $attr['OUTDENT']) { $this->TOCoutdent = $attr['OUTDENT']; } else { $this->TOCoutdent = ''; } // mPDF 5.6.19
|
||||
if (isset($attr['TOC-ORIENTATION']) && $attr['TOC-ORIENTATION']) { $this->TOCorientation = $attr['TOC-ORIENTATION']; } else { $this->TOCorientation = ''; }
|
||||
if (isset($attr['PAGING']) && (strtoupper($attr['PAGING'])=='OFF' || $attr['PAGING']==='0')) { $this->TOCusePaging = false; }
|
||||
else { $this->TOCusePaging = true; }
|
||||
if (isset($attr['LINKS']) && (strtoupper($attr['LINKS'])=='ON' || $attr['LINKS']==1)) { $this->TOCuseLinking = true; }
|
||||
else { $this->TOCuseLinking = false; }
|
||||
|
||||
$this->TOC_margin_left = $this->TOC_margin_right = $this->TOC_margin_top = $this->TOC_margin_bottom = $this->TOC_margin_header = $this->TOC_margin_footer = '';
|
||||
if (isset($attr['TOC-MARGIN-RIGHT'])) { $this->TOC_margin_right = $this->mpdf->ConvertSize($attr['TOC-MARGIN-RIGHT'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-LEFT'])) { $this->TOC_margin_left = $this->mpdf->ConvertSize($attr['TOC-MARGIN-LEFT'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-TOP'])) { $this->TOC_margin_top = $this->mpdf->ConvertSize($attr['TOC-MARGIN-TOP'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-BOTTOM'])) { $this->TOC_margin_bottom = $this->mpdf->ConvertSize($attr['TOC-MARGIN-BOTTOM'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-HEADER'])) { $this->TOC_margin_header = $this->mpdf->ConvertSize($attr['TOC-MARGIN-HEADER'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
if (isset($attr['TOC-MARGIN-FOOTER'])) { $this->TOC_margin_footer = $this->mpdf->ConvertSize($attr['TOC-MARGIN-FOOTER'],$this->mpdf->w,$this->mpdf->FontSize,false); }
|
||||
$this->TOC_odd_header_name = $this->TOC_even_header_name = $this->TOC_odd_footer_name = $this->TOC_even_footer_name = '';
|
||||
if (isset($attr['TOC-ODD-HEADER-NAME']) && $attr['TOC-ODD-HEADER-NAME']) { $this->TOC_odd_header_name = $attr['TOC-ODD-HEADER-NAME']; }
|
||||
if (isset($attr['TOC-EVEN-HEADER-NAME']) && $attr['TOC-EVEN-HEADER-NAME']) { $this->TOC_even_header_name = $attr['TOC-EVEN-HEADER-NAME']; }
|
||||
if (isset($attr['TOC-ODD-FOOTER-NAME']) && $attr['TOC-ODD-FOOTER-NAME']) { $this->TOC_odd_footer_name = $attr['TOC-ODD-FOOTER-NAME']; }
|
||||
if (isset($attr['TOC-EVEN-FOOTER-NAME']) && $attr['TOC-EVEN-FOOTER-NAME']) { $this->TOC_even_footer_name = $attr['TOC-EVEN-FOOTER-NAME']; }
|
||||
$this->TOC_odd_header_value = $this->TOC_even_header_value = $this->TOC_odd_footer_value = $this->TOC_even_footer_value = 0;
|
||||
if (isset($attr['TOC-ODD-HEADER-VALUE']) && ($attr['TOC-ODD-HEADER-VALUE']=='1' || strtoupper($attr['TOC-ODD-HEADER-VALUE'])=='ON')) { $this->TOC_odd_header_value = 1; }
|
||||
else if (isset($attr['TOC-ODD-HEADER-VALUE']) && ($attr['TOC-ODD-HEADER-VALUE']=='-1' || strtoupper($attr['TOC-ODD-HEADER-VALUE'])=='OFF')) { $this->TOC_odd_header_value = -1; }
|
||||
if (isset($attr['TOC-EVEN-HEADER-VALUE']) && ($attr['TOC-EVEN-HEADER-VALUE']=='1' || strtoupper($attr['TOC-EVEN-HEADER-VALUE'])=='ON')) { $this->TOC_even_header_value = 1; }
|
||||
else if (isset($attr['TOC-EVEN-HEADER-VALUE']) && ($attr['TOC-EVEN-HEADER-VALUE']=='-1' || strtoupper($attr['TOC-EVEN-HEADER-VALUE'])=='OFF')) { $this->TOC_even_header_value = -1; }
|
||||
|
||||
if (isset($attr['TOC-ODD-FOOTER-VALUE']) && ($attr['TOC-ODD-FOOTER-VALUE']=='1' || strtoupper($attr['TOC-ODD-FOOTER-VALUE'])=='ON')) { $this->TOC_odd_footer_value = 1; }
|
||||
else if (isset($attr['TOC-ODD-FOOTER-VALUE']) && ($attr['TOC-ODD-FOOTER-VALUE']=='-1' || strtoupper($attr['TOC-ODD-FOOTER-VALUE'])=='OFF')) { $this->TOC_odd_footer_value = -1; }
|
||||
if (isset($attr['TOC-EVEN-FOOTER-VALUE']) && ($attr['TOC-EVEN-FOOTER-VALUE']=='1' || strtoupper($attr['TOC-EVEN-FOOTER-VALUE'])=='ON')) { $this->TOC_even_footer_value = 1; }
|
||||
else if (isset($attr['TOC-EVEN-FOOTER-VALUE']) && ($attr['TOC-EVEN-FOOTER-VALUE']=='-1' || strtoupper($attr['TOC-EVEN-FOOTER-VALUE'])=='OFF')) { $this->TOC_even_footer_value = -1; }
|
||||
if (isset($attr['TOC-PAGE-SELECTOR']) && $attr['TOC-PAGE-SELECTOR']) { $this->TOC_page_selector = $attr['TOC-PAGE-SELECTOR']; }
|
||||
else { $this->TOC_page_selector = ''; }
|
||||
if (isset($attr['TOC-RESETPAGENUM']) && $attr['TOC-RESETPAGENUM']) { $this->TOC_resetpagenum = $attr['TOC-RESETPAGENUM']; }
|
||||
else { $this->TOC_resetpagenum = ''; } // mPDF 6
|
||||
if (isset($attr['TOC-PAGENUMSTYLE']) && $attr['TOC-PAGENUMSTYLE']) { $this->TOC_pagenumstyle = $attr['TOC-PAGENUMSTYLE']; }
|
||||
else { $this->TOC_pagenumstyle = ''; } // mPDF 6
|
||||
if (isset($attr['TOC-SUPPRESS']) && ($attr['TOC-SUPPRESS'] || $attr['TOC-SUPPRESS']==='0')) { $this->TOC_suppress = $attr['TOC-SUPPRESS']; }
|
||||
else { $this->TOC_suppress = ''; } // mPDF 6
|
||||
if (isset($attr['TOC-SHEET-SIZE']) && $attr['TOC-SHEET-SIZE']) { $this->TOCsheetsize = $attr['TOC-SHEET-SIZE']; } else { $this->TOCsheetsize = ''; }
|
||||
|
||||
if (isset($attr['TOC-PREHTML']) && $attr['TOC-PREHTML']) { $this->TOCpreHTML = htmlspecialchars_decode($attr['TOC-PREHTML'],ENT_QUOTES); }
|
||||
if (isset($attr['TOC-POSTHTML']) && $attr['TOC-POSTHTML']) { $this->TOCpostHTML = htmlspecialchars_decode($attr['TOC-POSTHTML'],ENT_QUOTES); }
|
||||
if (isset($attr['TOC-BOOKMARKTEXT']) && $attr['TOC-BOOKMARKTEXT']) { $this->TOCbookmarkText = htmlspecialchars_decode($attr['TOC-BOOKMARKTEXT'],ENT_QUOTES); }
|
||||
}
|
||||
|
||||
if ($this->mpdf->y == $this->mpdf->tMargin && (!$this->mpdf->mirrorMargins ||($this->mpdf->mirrorMargins && $this->mpdf->page % 2==1))) {
|
||||
if ($toc_id) { $this->m_TOC[$toc_id]['TOCmark'] = $this->mpdf->page; }
|
||||
else { $this->TOCmark = $this->mpdf->page; }
|
||||
// Don't add a page
|
||||
if ($this->mpdf->page==1 && count($this->mpdf->PageNumSubstitutions)==0) {
|
||||
$resetpagenum = '';
|
||||
$pagenumstyle = '';
|
||||
$suppress = '';
|
||||
if (isset($attr['RESETPAGENUM'])) { $resetpagenum = $attr['RESETPAGENUM']; }
|
||||
if (isset($attr['PAGENUMSTYLE'])) { $pagenumstyle = $attr['PAGENUMSTYLE']; }
|
||||
if (isset($attr['SUPPRESS'])) { $suppress = $attr['SUPPRESS']; }
|
||||
if (!$suppress) { $suppress = 'off'; }
|
||||
if (!$resetpagenum) { $resetpagenum= 1; }
|
||||
$this->mpdf->PageNumSubstitutions[] = array('from'=>1, 'reset'=> $resetpagenum, 'type'=>$pagenumstyle, 'suppress'=> $suppress);
|
||||
}
|
||||
return array(true, $toc_id);
|
||||
}
|
||||
// No break - continues as PAGEBREAK...
|
||||
return array(false, $toc_id);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,408 +0,0 @@
|
||||
<?php
|
||||
|
||||
require_once(_MPDF_PATH.'classes/ttfontsuni.php');
|
||||
|
||||
class TTFontFile_Analysis EXTENDS TTFontFile {
|
||||
|
||||
// Used to get font information from files in directory
|
||||
function extractCoreInfo($file, $TTCfontID=0) {
|
||||
$this->filename = $file;
|
||||
$this->fh = fopen($file,'rb');
|
||||
if (!$this->fh) { return ('ERROR - Can\'t open file ' . $file); }
|
||||
$this->_pos = 0;
|
||||
$this->charWidths = '';
|
||||
$this->glyphPos = array();
|
||||
$this->charToGlyph = array();
|
||||
$this->tables = array();
|
||||
$this->otables = array();
|
||||
$this->ascent = 0;
|
||||
$this->descent = 0;
|
||||
$this->numTTCFonts = 0;
|
||||
$this->TTCFonts = array();
|
||||
$this->version = $version = $this->read_ulong();
|
||||
$this->panose = array(); // mPDF 5.0
|
||||
if ($version==0x4F54544F)
|
||||
return("ERROR - NOT ADDED as Postscript outlines are not supported - " . $file);
|
||||
if ($version==0x74746366) {
|
||||
if ($TTCfontID > 0) {
|
||||
$this->version = $version = $this->read_ulong(); // TTC Header version now
|
||||
if (!in_array($version, array(0x00010000,0x00020000)))
|
||||
return("ERROR - NOT ADDED as Error parsing TrueType Collection: version=".$version." - " . $file);
|
||||
}
|
||||
else return("ERROR - Error parsing TrueType Collection - " . $file);
|
||||
$this->numTTCFonts = $this->read_ulong();
|
||||
for ($i=1; $i<=$this->numTTCFonts; $i++) {
|
||||
$this->TTCFonts[$i]['offset'] = $this->read_ulong();
|
||||
}
|
||||
$this->seek($this->TTCFonts[$TTCfontID]['offset']);
|
||||
$this->version = $version = $this->read_ulong(); // TTFont version again now
|
||||
$this->readTableDirectory(false);
|
||||
}
|
||||
else {
|
||||
if (!in_array($version, array(0x00010000,0x74727565)))
|
||||
return("ERROR - NOT ADDED as Not a TrueType font: version=".$version." - " . $file);
|
||||
$this->readTableDirectory(false);
|
||||
}
|
||||
|
||||
/* Included for testing...
|
||||
$cmap_offset = $this->seek_table("cmap");
|
||||
$this->skip(2);
|
||||
$cmapTableCount = $this->read_ushort();
|
||||
$unicode_cmap_offset = 0;
|
||||
for ($i=0;$i<$cmapTableCount;$i++) {
|
||||
$x[$i]['platformId'] = $this->read_ushort();
|
||||
$x[$i]['encodingId'] = $this->read_ushort();
|
||||
$x[$i]['offset'] = $this->read_ulong();
|
||||
$save_pos = $this->_pos;
|
||||
$x[$i]['format'] = $this->get_ushort($cmap_offset + $x[$i]['offset'] );
|
||||
$this->seek($save_pos );
|
||||
}
|
||||
print_r($x); exit;
|
||||
*/
|
||||
///////////////////////////////////
|
||||
// name - Naming table
|
||||
///////////////////////////////////
|
||||
|
||||
/* Test purposes - displays table of names
|
||||
$name_offset = $this->seek_table("name");
|
||||
$format = $this->read_ushort();
|
||||
if ($format != 0 && $format != 1) // mPDF 5.3.73
|
||||
die("Unknown name table format ".$format);
|
||||
$numRecords = $this->read_ushort();
|
||||
$string_data_offset = $name_offset + $this->read_ushort();
|
||||
for ($i=0;$i<$numRecords; $i++) {
|
||||
$x[$i]['platformId'] = $this->read_ushort();
|
||||
$x[$i]['encodingId'] = $this->read_ushort();
|
||||
$x[$i]['languageId'] = $this->read_ushort();
|
||||
$x[$i]['nameId'] = $this->read_ushort();
|
||||
$x[$i]['length'] = $this->read_ushort();
|
||||
$x[$i]['offset'] = $this->read_ushort();
|
||||
|
||||
$N = '';
|
||||
if ($x[$i]['platformId'] == 1 && $x[$i]['encodingId'] == 0 && $x[$i]['languageId'] == 0) { // Roman
|
||||
$opos = $this->_pos;
|
||||
$N = $this->get_chunk($string_data_offset + $x[$i]['offset'] , $x[$i]['length'] );
|
||||
$this->_pos = $opos;
|
||||
$this->seek($opos);
|
||||
}
|
||||
else { // Unicode
|
||||
$opos = $this->_pos;
|
||||
$this->seek($string_data_offset + $x[$i]['offset'] );
|
||||
$length = $x[$i]['length'] ;
|
||||
if ($length % 2 != 0)
|
||||
$length -= 1;
|
||||
// die("PostScript name is UTF-16BE string of odd length");
|
||||
$length /= 2;
|
||||
$N = '';
|
||||
while ($length > 0) {
|
||||
$char = $this->read_ushort();
|
||||
$N .= (chr($char));
|
||||
$length -= 1;
|
||||
}
|
||||
$this->_pos = $opos;
|
||||
$this->seek($opos);
|
||||
}
|
||||
$x[$i]['names'][$nameId] = $N;
|
||||
}
|
||||
print_r($x); exit;
|
||||
*/
|
||||
|
||||
$name_offset = $this->seek_table("name");
|
||||
$format = $this->read_ushort();
|
||||
if ($format != 0 && $format != 1) // mPDF 5.3.73
|
||||
return("ERROR - NOT ADDED as Unknown name table format ".$format." - " . $file);
|
||||
$numRecords = $this->read_ushort();
|
||||
$string_data_offset = $name_offset + $this->read_ushort();
|
||||
$names = array(1=>'',2=>'',3=>'',4=>'',6=>'');
|
||||
$K = array_keys($names);
|
||||
$nameCount = count($names);
|
||||
for ($i=0;$i<$numRecords; $i++) {
|
||||
$platformId = $this->read_ushort();
|
||||
$encodingId = $this->read_ushort();
|
||||
$languageId = $this->read_ushort();
|
||||
$nameId = $this->read_ushort();
|
||||
$length = $this->read_ushort();
|
||||
$offset = $this->read_ushort();
|
||||
if (!in_array($nameId,$K)) continue;
|
||||
$N = '';
|
||||
if ($platformId == 3 && $encodingId == 1 && $languageId == 0x409) { // Microsoft, Unicode, US English, PS Name
|
||||
$opos = $this->_pos;
|
||||
$this->seek($string_data_offset + $offset);
|
||||
if ($length % 2 != 0)
|
||||
$length += 1;
|
||||
$length /= 2;
|
||||
$N = '';
|
||||
while ($length > 0) {
|
||||
$char = $this->read_ushort();
|
||||
$N .= (chr($char));
|
||||
$length -= 1;
|
||||
}
|
||||
$this->_pos = $opos;
|
||||
$this->seek($opos);
|
||||
}
|
||||
else if ($platformId == 1 && $encodingId == 0 && $languageId == 0) { // Macintosh, Roman, English, PS Name
|
||||
$opos = $this->_pos;
|
||||
$N = $this->get_chunk($string_data_offset + $offset, $length);
|
||||
$this->_pos = $opos;
|
||||
$this->seek($opos);
|
||||
}
|
||||
if ($N && $names[$nameId]=='') {
|
||||
$names[$nameId] = $N;
|
||||
$nameCount -= 1;
|
||||
if ($nameCount==0) break;
|
||||
}
|
||||
}
|
||||
if ($names[6])
|
||||
$psName = preg_replace('/ /','-',$names[6]);
|
||||
else if ($names[4])
|
||||
$psName = preg_replace('/ /','-',$names[4]);
|
||||
else if ($names[1])
|
||||
$psName = preg_replace('/ /','-',$names[1]);
|
||||
else
|
||||
$psName = '';
|
||||
if (!$names[1] && !$psName)
|
||||
return("ERROR - NOT ADDED as Could not find valid font name - " . $file);
|
||||
$this->name = $psName;
|
||||
if ($names[1]) { $this->familyName = $names[1]; } else { $this->familyName = $psName; }
|
||||
if ($names[2]) { $this->styleName = $names[2]; } else { $this->styleName = 'Regular'; }
|
||||
|
||||
///////////////////////////////////
|
||||
// head - Font header table
|
||||
///////////////////////////////////
|
||||
$this->seek_table("head");
|
||||
$ver_maj = $this->read_ushort();
|
||||
$ver_min = $this->read_ushort();
|
||||
if ($ver_maj != 1)
|
||||
return('ERROR - NOT ADDED as Unknown head table version '. $ver_maj .'.'. $ver_min." - " . $file);
|
||||
$this->fontRevision = $this->read_ushort() . $this->read_ushort();
|
||||
$this->skip(4);
|
||||
$magic = $this->read_ulong();
|
||||
if ($magic != 0x5F0F3CF5)
|
||||
return('ERROR - NOT ADDED as Invalid head table magic ' .$magic." - " . $file);
|
||||
$this->skip(2);
|
||||
$this->unitsPerEm = $unitsPerEm = $this->read_ushort();
|
||||
$scale = 1000 / $unitsPerEm;
|
||||
$this->skip(24);
|
||||
$macStyle = $this->read_short();
|
||||
$this->skip(4);
|
||||
$indexLocFormat = $this->read_short();
|
||||
|
||||
///////////////////////////////////
|
||||
// OS/2 - OS/2 and Windows metrics table
|
||||
///////////////////////////////////
|
||||
$sFamily = '';
|
||||
$panose = '';
|
||||
$fsSelection = '';
|
||||
if (isset($this->tables["OS/2"])) {
|
||||
$this->seek_table("OS/2");
|
||||
$this->skip(30);
|
||||
$sF = $this->read_short();
|
||||
$sFamily = ($sF >> 8);
|
||||
$this->_pos += 10; //PANOSE = 10 byte length
|
||||
$panose = fread($this->fh,10);
|
||||
$this->panose = array();
|
||||
for ($p=0;$p<strlen($panose);$p++) { $this->panose[] = ord($panose[$p]); }
|
||||
$this->skip(20);
|
||||
$fsSelection = $this->read_short();
|
||||
}
|
||||
|
||||
///////////////////////////////////
|
||||
// post - PostScript table
|
||||
///////////////////////////////////
|
||||
$this->seek_table("post");
|
||||
$this->skip(4);
|
||||
$this->italicAngle = $this->read_short() + $this->read_ushort() / 65536.0;
|
||||
$this->skip(4);
|
||||
$isFixedPitch = $this->read_ulong();
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////
|
||||
// cmap - Character to glyph index mapping table
|
||||
///////////////////////////////////
|
||||
$cmap_offset = $this->seek_table("cmap");
|
||||
$this->skip(2);
|
||||
$cmapTableCount = $this->read_ushort();
|
||||
$unicode_cmap_offset = 0;
|
||||
for ($i=0;$i<$cmapTableCount;$i++) {
|
||||
$platformID = $this->read_ushort();
|
||||
$encodingID = $this->read_ushort();
|
||||
$offset = $this->read_ulong();
|
||||
$save_pos = $this->_pos;
|
||||
if (($platformID == 3 && $encodingID == 1) || $platformID == 0) { // Microsoft, Unicode
|
||||
$format = $this->get_ushort($cmap_offset + $offset);
|
||||
if ($format == 4) {
|
||||
if (!$unicode_cmap_offset) $unicode_cmap_offset = $cmap_offset + $offset;
|
||||
}
|
||||
}
|
||||
else if ((($platformID == 3 && $encodingID == 10) || $platformID == 0)) { // Microsoft, Unicode Format 12 table HKCS
|
||||
$format = $this->get_ushort($cmap_offset + $offset);
|
||||
if ($format == 12) {
|
||||
$unicode_cmap_offset = $cmap_offset + $offset;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->seek($save_pos );
|
||||
}
|
||||
|
||||
if (!$unicode_cmap_offset)
|
||||
return('ERROR - Font ('.$this->filename .') NOT ADDED as it is not Unicode encoded, and cannot be used by mPDF');
|
||||
|
||||
$rtl = false;
|
||||
$indic = false;
|
||||
$cjk = false;
|
||||
$sip = false;
|
||||
$smp = false;
|
||||
$pua = false;
|
||||
$puaag = false;
|
||||
$glyphToChar = array();
|
||||
$unAGlyphs = '';
|
||||
// Format 12 CMAP does characters above Unicode BMP i.e. some HKCS characters U+20000 and above
|
||||
if ($format == 12) {
|
||||
$this->seek($unicode_cmap_offset + 4);
|
||||
$length = $this->read_ulong();
|
||||
$limit = $unicode_cmap_offset + $length;
|
||||
$this->skip(4);
|
||||
$nGroups = $this->read_ulong();
|
||||
for($i=0; $i<$nGroups ; $i++) {
|
||||
$startCharCode = $this->read_ulong();
|
||||
$endCharCode = $this->read_ulong();
|
||||
$startGlyphCode = $this->read_ulong();
|
||||
if (($endCharCode > 0x20000 && $endCharCode < 0x2A6DF) || ($endCharCode > 0x2F800 && $endCharCode < 0x2FA1F)) {
|
||||
$sip = true;
|
||||
}
|
||||
if ($endCharCode > 0x10000 && $endCharCode < 0x1FFFF) {
|
||||
$smp = true;
|
||||
}
|
||||
if (($endCharCode > 0x0590 && $endCharCode < 0x077F) || ($endCharCode > 0xFE70 && $endCharCode < 0xFEFF) || ($endCharCode > 0xFB50 && $endCharCode < 0xFDFF)) {
|
||||
$rtl = true;
|
||||
}
|
||||
if ($endCharCode > 0x0900 && $endCharCode < 0x0DFF) {
|
||||
$indic = true;
|
||||
}
|
||||
if ($endCharCode > 0xE000 && $endCharCode < 0xF8FF) {
|
||||
$pua = true;
|
||||
if ($endCharCode > 0xF500 && $endCharCode < 0xF7FF) {
|
||||
$puaag = true;
|
||||
}
|
||||
}
|
||||
if (($endCharCode > 0x2E80 && $endCharCode < 0x4DC0) || ($endCharCode > 0x4E00 && $endCharCode < 0xA4CF) || ($endCharCode > 0xAC00 && $endCharCode < 0xD7AF) || ($endCharCode > 0xF900 && $endCharCode < 0xFAFF) || ($endCharCode > 0xFE30 && $endCharCode < 0xFE4F)) {
|
||||
$cjk = true;
|
||||
}
|
||||
|
||||
$offset = 0;
|
||||
// Get each glyphToChar - only point if going to analyse un-mapped Arabic Glyphs
|
||||
if (isset($this->tables['post'])) {
|
||||
for ($unichar=$startCharCode;$unichar<=$endCharCode;$unichar++) {
|
||||
$glyph = $startGlyphCode + $offset ;
|
||||
$offset++;
|
||||
$glyphToChar[$glyph][] = $unichar;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
else { // Format 4 CMap
|
||||
$this->seek($unicode_cmap_offset + 2);
|
||||
$length = $this->read_ushort();
|
||||
$limit = $unicode_cmap_offset + $length;
|
||||
$this->skip(2);
|
||||
|
||||
$segCount = $this->read_ushort() / 2;
|
||||
$this->skip(6);
|
||||
$endCount = array();
|
||||
for($i=0; $i<$segCount; $i++) { $endCount[] = $this->read_ushort(); }
|
||||
$this->skip(2);
|
||||
$startCount = array();
|
||||
for($i=0; $i<$segCount; $i++) { $startCount[] = $this->read_ushort(); }
|
||||
$idDelta = array();
|
||||
for($i=0; $i<$segCount; $i++) { $idDelta[] = $this->read_short(); }
|
||||
$idRangeOffset_start = $this->_pos;
|
||||
$idRangeOffset = array();
|
||||
for($i=0; $i<$segCount; $i++) { $idRangeOffset[] = $this->read_ushort(); }
|
||||
|
||||
for ($n=0;$n<$segCount;$n++) {
|
||||
if (($endCount[$n] > 0x0590 && $endCount[$n] < 0x077F) || ($endCount[$n] > 0xFE70 && $endCount[$n] < 0xFEFF) || ($endCount[$n] > 0xFB50 && $endCount[$n] < 0xFDFF)) {
|
||||
$rtl = true;
|
||||
}
|
||||
if ($endCount[$n] > 0x0900 && $endCount[$n] < 0x0DFF) {
|
||||
$indic = true;
|
||||
}
|
||||
if (($endCount[$n] > 0x2E80 && $endCount[$n] < 0x4DC0) || ($endCount[$n] > 0x4E00 && $endCount[$n] < 0xA4CF) || ($endCount[$n] > 0xAC00 && $endCount[$n] < 0xD7AF) || ($endCount[$n] > 0xF900 && $endCount[$n] < 0xFAFF) || ($endCount[$n] > 0xFE30 && $endCount[$n] < 0xFE4F)) {
|
||||
$cjk = true;
|
||||
}
|
||||
if ($endCount[$n] > 0xE000 && $endCount[$n] < 0xF8FF) {
|
||||
$pua = true;
|
||||
if ($endCount[$n] > 0xF500 && $endCount[$n] < 0xF7FF) {
|
||||
$puaag = true;
|
||||
}
|
||||
}
|
||||
// Get each glyphToChar - only point if going to analyse un-mapped Arabic Glyphs
|
||||
if (isset($this->tables['post'])) {
|
||||
$endpoint = ($endCount[$n] + 1);
|
||||
for ($unichar=$startCount[$n];$unichar<$endpoint;$unichar++) {
|
||||
if ($idRangeOffset[$n] == 0)
|
||||
$glyph = ($unichar + $idDelta[$n]) & 0xFFFF;
|
||||
else {
|
||||
$offset = ($unichar - $startCount[$n]) * 2 + $idRangeOffset[$n];
|
||||
$offset = $idRangeOffset_start + 2 * $n + $offset;
|
||||
if ($offset >= $limit)
|
||||
$glyph = 0;
|
||||
else {
|
||||
$glyph = $this->get_ushort($offset);
|
||||
if ($glyph != 0)
|
||||
$glyph = ($glyph + $idDelta[$n]) & 0xFFFF;
|
||||
}
|
||||
}
|
||||
$glyphToChar[$glyph][] = $unichar;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$bold = false;
|
||||
$italic = false;
|
||||
$ftype = '';
|
||||
if ($macStyle & (1 << 0)) { $bold = true; } // bit 0 bold
|
||||
else if ($fsSelection & (1 << 5)) { $bold = true; } // 5 BOLD Characters are emboldened
|
||||
|
||||
if ($macStyle & (1 << 1)) { $italic = true; } // bit 1 italic
|
||||
else if ($fsSelection & (1 << 0)) { $italic = true; } // 0 ITALIC Font contains Italic characters, otherwise they are upright
|
||||
else if ($this->italicAngle <> 0) { $italic = true; }
|
||||
|
||||
if ($isFixedPitch ) { $ftype = 'mono'; }
|
||||
else if ($sFamily >0 && $sFamily <8) { $ftype = 'serif'; }
|
||||
else if ($sFamily ==8) { $ftype = 'sans'; }
|
||||
else if ($sFamily ==10) { $ftype = 'cursive'; }
|
||||
// Use PANOSE
|
||||
if ($panose) {
|
||||
$bFamilyType=ord($panose[0]);
|
||||
if ($bFamilyType==2) {
|
||||
$bSerifStyle=ord($panose[1]);
|
||||
if (!$ftype) {
|
||||
if ($bSerifStyle>1 && $bSerifStyle<11) { $ftype = 'serif'; }
|
||||
else if ($bSerifStyle>10) { $ftype = 'sans'; }
|
||||
}
|
||||
$bProportion=ord($panose[3]);
|
||||
if ($bProportion==9 || $bProportion==1) { $ftype = 'mono'; } // ==1 i.e. No Fit needed for OCR-a and -b
|
||||
}
|
||||
else if ($bFamilyType==3) {
|
||||
$ftype = 'cursive';
|
||||
}
|
||||
}
|
||||
|
||||
fclose($this->fh);
|
||||
return array($this->familyName, $bold, $italic, $ftype, $TTCfontID, $rtl, $indic, $cjk, $sip, $smp, $puaag, $pua, $unAGlyphs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@ -1,236 +0,0 @@
|
||||
<?php
|
||||
|
||||
class wmf {
|
||||
|
||||
var $mpdf = null;
|
||||
var $gdiObjectArray;
|
||||
|
||||
function wmf(&$mpdf) {
|
||||
$this->mpdf = $mpdf;
|
||||
}
|
||||
|
||||
|
||||
function _getWMFimage($data) {
|
||||
$k = _MPDFK;
|
||||
|
||||
$this->gdiObjectArray = array();
|
||||
$a=unpack('stest',"\1\0");
|
||||
if ($a['test']!=1)
|
||||
return array(0, 'Error parsing WMF image - Big-endian architecture not supported');
|
||||
// check for Aldus placeable metafile header
|
||||
$key = unpack('Lmagic', substr($data, 0, 4));
|
||||
$p = 18; // WMF header
|
||||
if ($key['magic'] == (int)0x9AC6CDD7) { $p +=22; } // Aldus header
|
||||
// define some state variables
|
||||
$wo=null; // window origin
|
||||
$we=null; // window extent
|
||||
$polyFillMode = 0;
|
||||
$nullPen = false;
|
||||
$nullBrush = false;
|
||||
$endRecord = false;
|
||||
$wmfdata = '';
|
||||
while ($p < strlen($data) && !$endRecord) {
|
||||
$recordInfo = unpack('Lsize/Sfunc', substr($data, $p, 6)); $p += 6;
|
||||
// size of record given in WORDs (= 2 bytes)
|
||||
$size = $recordInfo['size'];
|
||||
// func is number of GDI function
|
||||
$func = $recordInfo['func'];
|
||||
if ($size > 3) {
|
||||
$parms = substr($data, $p, 2*($size-3)); $p += 2*($size-3);
|
||||
}
|
||||
switch ($func) {
|
||||
case 0x020b: // SetWindowOrg
|
||||
// do not allow window origin to be changed
|
||||
// after drawing has begun
|
||||
if (!$wmfdata)
|
||||
$wo = array_reverse(unpack('s2', $parms));
|
||||
break;
|
||||
case 0x020c: // SetWindowExt
|
||||
// do not allow window extent to be changed
|
||||
// after drawing has begun
|
||||
if (!$wmfdata)
|
||||
$we = array_reverse(unpack('s2', $parms));
|
||||
break;
|
||||
case 0x02fc: // CreateBrushIndirect
|
||||
$brush = unpack('sstyle/Cr/Cg/Cb/Ca/Shatch', $parms);
|
||||
$brush['type'] = 'B';
|
||||
$this->_AddGDIObject($brush);
|
||||
break;
|
||||
case 0x02fa: // CreatePenIndirect
|
||||
$pen = unpack('Sstyle/swidth/sdummy/Cr/Cg/Cb/Ca', $parms);
|
||||
// convert width from twips to user unit
|
||||
$pen['width'] /= (20 * $k);
|
||||
$pen['type'] = 'P';
|
||||
$this->_AddGDIObject($pen);
|
||||
break;
|
||||
|
||||
// MUST create other GDI objects even if we don't handle them
|
||||
case 0x06fe: // CreateBitmap
|
||||
case 0x02fd: // CreateBitmapIndirect
|
||||
case 0x00f8: // CreateBrush
|
||||
case 0x02fb: // CreateFontIndirect
|
||||
case 0x00f7: // CreatePalette
|
||||
case 0x01f9: // CreatePatternBrush
|
||||
case 0x06ff: // CreateRegion
|
||||
case 0x0142: // DibCreatePatternBrush
|
||||
$dummyObject = array('type'=>'D');
|
||||
$this->_AddGDIObject($dummyObject);
|
||||
break;
|
||||
case 0x0106: // SetPolyFillMode
|
||||
$polyFillMode = unpack('smode', $parms);
|
||||
$polyFillMode = $polyFillMode['mode'];
|
||||
break;
|
||||
case 0x01f0: // DeleteObject
|
||||
$idx = unpack('Sidx', $parms);
|
||||
$idx = $idx['idx'];
|
||||
$this->_DeleteGDIObject($idx);
|
||||
break;
|
||||
case 0x012d: // SelectObject
|
||||
$idx = unpack('Sidx', $parms);
|
||||
$idx = $idx['idx'];
|
||||
$obj = $this->_GetGDIObject($idx);
|
||||
switch ($obj['type']) {
|
||||
case 'B':
|
||||
$nullBrush = false;
|
||||
if ($obj['style'] == 1) { $nullBrush = true; }
|
||||
else {
|
||||
$wmfdata .= $this->mpdf->SetFColor($this->mpdf->ConvertColor('rgb('.$obj['r'].','.$obj['g'].','.$obj['b'].')'), true)."\n";
|
||||
}
|
||||
break;
|
||||
case 'P':
|
||||
$nullPen = false;
|
||||
$dashArray = array();
|
||||
// dash parameters are custom
|
||||
switch ($obj['style']) {
|
||||
case 0: // PS_SOLID
|
||||
break;
|
||||
case 1: // PS_DASH
|
||||
$dashArray = array(3,1);
|
||||
break;
|
||||
case 2: // PS_DOT
|
||||
$dashArray = array(0.5,0.5);
|
||||
break;
|
||||
case 3: // PS_DASHDOT
|
||||
$dashArray = array(2,1,0.5,1);
|
||||
break;
|
||||
case 4: // PS_DASHDOTDOT
|
||||
$dashArray = array(2,1,0.5,1,0.5,1);
|
||||
break;
|
||||
case 5: // PS_NULL
|
||||
$nullPen = true;
|
||||
break;
|
||||
}
|
||||
if (!$nullPen) {
|
||||
$wmfdata .= $this->mpdf->SetDColor($this->mpdf->ConvertColor('rgb('.$obj['r'].','.$obj['g'].','.$obj['b'].')'), true)."\n";
|
||||
$wmfdata .= sprintf("%.3F w\n",$obj['width']*$k);
|
||||
}
|
||||
if (!empty($dashArray)) {
|
||||
$s = '[';
|
||||
for ($i=0; $i<count($dashArray);$i++) {
|
||||
$s .= $dashArray[$i] * $k;
|
||||
if ($i != count($dashArray)-1) { $s .= ' '; }
|
||||
}
|
||||
$s .= '] 0 d';
|
||||
$wmfdata .= $s."\n";
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 0x0325: // Polyline
|
||||
case 0x0324: // Polygon
|
||||
$coords = unpack('s'.($size-3), $parms);
|
||||
$numpoints = $coords[1];
|
||||
for ($i = $numpoints; $i > 0; $i--) {
|
||||
$px = $coords[2*$i];
|
||||
$py = $coords[2*$i+1];
|
||||
|
||||
if ($i < $numpoints) { $wmfdata .= $this->_LineTo($px, $py); }
|
||||
else { $wmfdata .= $this->_MoveTo($px, $py); }
|
||||
}
|
||||
if ($func == 0x0325) { $op = 's'; }
|
||||
else if ($func == 0x0324) {
|
||||
if ($nullPen) {
|
||||
if ($nullBrush) { $op = 'n'; } // no op
|
||||
else { $op = 'f'; } // fill
|
||||
}
|
||||
else {
|
||||
if ($nullBrush) { $op = 's'; } // stroke
|
||||
else { $op = 'b'; } // stroke and fill
|
||||
}
|
||||
if ($polyFillMode==1 && ($op=='b' || $op=='f')) { $op .= '*'; } // use even-odd fill rule
|
||||
}
|
||||
$wmfdata .= $op."\n";
|
||||
break;
|
||||
case 0x0538: // PolyPolygon
|
||||
$coords = unpack('s'.($size-3), $parms);
|
||||
$numpolygons = $coords[1];
|
||||
$adjustment = $numpolygons;
|
||||
for ($j = 1; $j <= $numpolygons; $j++) {
|
||||
$numpoints = $coords[$j + 1];
|
||||
for ($i = $numpoints; $i > 0; $i--) {
|
||||
$px = $coords[2*$i + $adjustment];
|
||||
$py = $coords[2*$i+1 + $adjustment];
|
||||
if ($i == $numpoints) { $wmfdata .= $this->_MoveTo($px, $py); }
|
||||
else { $wmfdata .= $this->_LineTo($px, $py); }
|
||||
}
|
||||
$adjustment += $numpoints * 2;
|
||||
}
|
||||
|
||||
if ($nullPen) {
|
||||
if ($nullBrush) { $op = 'n'; } // no op
|
||||
else { $op = 'f'; } // fill
|
||||
}
|
||||
else {
|
||||
if ($nullBrush) { $op = 's'; } // stroke
|
||||
else { $op = 'b'; } // stroke and fill
|
||||
}
|
||||
if ($polyFillMode==1 && ($op=='b' || $op=='f')) { $op .= '*'; } // use even-odd fill rule
|
||||
$wmfdata .= $op."\n";
|
||||
break;
|
||||
case 0x0000:
|
||||
$endRecord = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return array(1,$wmfdata,$wo,$we);
|
||||
}
|
||||
|
||||
|
||||
function _MoveTo($x, $y) {
|
||||
return "$x $y m\n";
|
||||
}
|
||||
|
||||
// a line must have been started using _MoveTo() first
|
||||
function _LineTo($x, $y) {
|
||||
return "$x $y l\n";
|
||||
}
|
||||
|
||||
function _AddGDIObject($obj) {
|
||||
// find next available slot
|
||||
$idx = 0;
|
||||
if (!empty($this->gdiObjectArray)) {
|
||||
$empty = false;
|
||||
$i = 0;
|
||||
while (!$empty) {
|
||||
$empty = !isset($this->gdiObjectArray[$i]);
|
||||
$i++;
|
||||
}
|
||||
$idx = $i-1;
|
||||
}
|
||||
$this->gdiObjectArray[$idx] = $obj;
|
||||
}
|
||||
|
||||
function _GetGDIObject($idx) {
|
||||
return $this->gdiObjectArray[$idx];
|
||||
}
|
||||
|
||||
function _DeleteGDIObject($idx) {
|
||||
unset($this->gdiObjectArray[$idx]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,251 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
// Optionally define a folder which contains TTF fonts
|
||||
// mPDF will look here before looking in the usual _MPDF_TTFONTPATH
|
||||
// Useful if you already have a folder for your fonts
|
||||
// e.g. on Windows: define("_MPDF_SYSTEM_TTFONTS", 'C:/Windows/Fonts/');
|
||||
|
||||
//if (!defined("_MPDF_SYSTEM_TTFONTS")) { define("_MPDF_SYSTEM_TTFONTS", 'C:/xampp/htdocs/common/ttffonts/'); }
|
||||
|
||||
// Optionally set font(s) (names as defined below in $this->fontdata) to use for missing characters
|
||||
// when using useSubstitutions. Use a font with wide coverage - dejavusanscondensed is a good start
|
||||
// only works using subsets (otherwise would add very large file)
|
||||
// More than 1 font can be specified but each will add to the processing time of the script
|
||||
|
||||
// $this->backupSubsFont = array('dejavusanscondensed','arialunicodems','sun-exta'); // this will recognise most scripts
|
||||
$this->backupSubsFont = array('dejavusanscondensed','freeserif');
|
||||
|
||||
// Optionally set a font (name as defined below in $this->fontdata) to use for CJK characters
|
||||
// in Plane 2 Unicode (> U+20000) when using useSubstitutions.
|
||||
// Use a font like hannomb or sun-extb if available
|
||||
// only works using subsets (otherwise would add very large file)
|
||||
|
||||
$this->backupSIPFont = 'sun-extb';
|
||||
|
||||
|
||||
/*
|
||||
This array defines translations from font-family in CSS or HTML
|
||||
to the internal font-family name used in mPDF.
|
||||
Can include as many as want, regardless of which fonts are installed.
|
||||
By default mPDF will take a CSS/HTML font-family and remove spaces
|
||||
and change to lowercase e.g. "Arial Unicode MS" will be recognised as
|
||||
"arialunicodems"
|
||||
You only need to define additional translations.
|
||||
You can also use it to define specific substitutions e.g.
|
||||
'helvetica' => 'arial'
|
||||
Generic substitutions (i.e. to a sans-serif or serif font) are set
|
||||
by including the font-family in e.g. $this->sans_fonts below
|
||||
*/
|
||||
$this->fonttrans = array(
|
||||
'times' => 'timesnewroman',
|
||||
'courier' => 'couriernew',
|
||||
'trebuchet' => 'trebuchetms',
|
||||
'comic' => 'comicsansms',
|
||||
'franklin' => 'franklingothicbook',
|
||||
'ocr-b' => 'ocrb',
|
||||
'ocr-b10bt' => 'ocrb',
|
||||
'damase' => 'mph2bdamase',
|
||||
);
|
||||
|
||||
/*
|
||||
This array lists the file names of the TrueType .ttf or .otf font files
|
||||
for each variant of the (internal mPDF) font-family name.
|
||||
['R'] = Regular (Normal), others are Bold, Italic, and Bold-Italic
|
||||
Each entry must contain an ['R'] entry, but others are optional.
|
||||
Only the font (files) entered here will be available to use in mPDF.
|
||||
Put preferred default first in order
|
||||
This will be used if a named font cannot be found in any of
|
||||
$this->sans_fonts, $this->serif_fonts or $this->mono_fonts
|
||||
|
||||
['sip-ext'] = 'sun-extb'; name a related font file containing SIP characters
|
||||
['useOTL'] => 0xFF, Enable use of OTL features.
|
||||
['useKashida'] => 75, Enable use of kashida for text justification in Arabic text
|
||||
|
||||
If a .ttc TrueType collection file is referenced, the number of the font
|
||||
within the collection is required. Fonts in the collection are numbered
|
||||
starting at 1, as they appear in the .ttc file e.g.
|
||||
"cambria" => array(
|
||||
'R' => "cambria.ttc",
|
||||
'B' => "cambriab.ttf",
|
||||
'I' => "cambriai.ttf",
|
||||
'BI' => "cambriaz.ttf",
|
||||
'TTCfontID' => array(
|
||||
'R' => 1,
|
||||
),
|
||||
),
|
||||
"cambriamath" => array(
|
||||
'R' => "cambria.ttc",
|
||||
'TTCfontID' => array(
|
||||
'R' => 2,
|
||||
),
|
||||
),
|
||||
*/
|
||||
|
||||
$this->fontdata = array(
|
||||
"dejavusanscondensed" => array(
|
||||
'R' => "DejaVuSansCondensed.ttf",
|
||||
'B' => "DejaVuSansCondensed-Bold.ttf",
|
||||
'I' => "DejaVuSansCondensed-Oblique.ttf",
|
||||
'BI' => "DejaVuSansCondensed-BoldOblique.ttf",
|
||||
),
|
||||
"dejavusans" => array(
|
||||
'R' => "DejaVuSans.ttf",
|
||||
'B' => "DejaVuSans-Bold.ttf",
|
||||
'I' => "DejaVuSans-Oblique.ttf",
|
||||
'BI' => "DejaVuSans-BoldOblique.ttf",
|
||||
),
|
||||
"dejavuserif" => array(
|
||||
'R' => "DejaVuSerif.ttf",
|
||||
'B' => "DejaVuSerif-Bold.ttf",
|
||||
'I' => "DejaVuSerif-Italic.ttf",
|
||||
'BI' => "DejaVuSerif-BoldItalic.ttf",
|
||||
),
|
||||
"dejavuserifcondensed" => array(
|
||||
'R' => "DejaVuSerifCondensed.ttf",
|
||||
'B' => "DejaVuSerifCondensed-Bold.ttf",
|
||||
'I' => "DejaVuSerifCondensed-Italic.ttf",
|
||||
'BI' => "DejaVuSerifCondensed-BoldItalic.ttf",
|
||||
),
|
||||
"dejavusansmono" => array(
|
||||
'R' => "DejaVuSansMono.ttf",
|
||||
'B' => "DejaVuSansMono-Bold.ttf",
|
||||
'I' => "DejaVuSansMono-Oblique.ttf",
|
||||
'BI' => "DejaVuSansMono-BoldOblique.ttf",
|
||||
),
|
||||
"freesans" => array(
|
||||
'R' => "FreeSans.ttf",
|
||||
'B' => "FreeSansBold.ttf",
|
||||
'I' => "FreeSansOblique.ttf",
|
||||
'BI' => "FreeSansBoldOblique.ttf",
|
||||
),
|
||||
"freeserif" => array(
|
||||
'R' => "FreeSerif.ttf",
|
||||
'B' => "FreeSerifBold.ttf",
|
||||
'I' => "FreeSerifItalic.ttf",
|
||||
'BI' => "FreeSerifBoldItalic.ttf",
|
||||
),
|
||||
"freemono" => array(
|
||||
'R' => "FreeMono.ttf",
|
||||
'B' => "FreeMonoBold.ttf",
|
||||
'I' => "FreeMonoOblique.ttf",
|
||||
'BI' => "FreeMonoBoldOblique.ttf",
|
||||
),
|
||||
|
||||
|
||||
/* OCR-B font for Barcodes */
|
||||
"ocrb" => array(
|
||||
'R' => "ocrb10.ttf",
|
||||
),
|
||||
|
||||
|
||||
|
||||
/* Miscellaneous language font(s) */
|
||||
|
||||
"abyssinicasil" => array( /* Ethiopic */
|
||||
'R' => "Abyssinica_SIL.ttf",
|
||||
),
|
||||
"aboriginalsans" => array( /* Cherokee and Canadian */
|
||||
'R' => "AboriginalSansREGULAR.ttf",
|
||||
),
|
||||
"sundaneseunicode" => array( /* Sundanese */
|
||||
'R' => "SundaneseUnicode-1.0.5.ttf",
|
||||
),
|
||||
"aegean" => array(
|
||||
'R' => "Aegean.otf",
|
||||
),
|
||||
"aegyptus" => array(
|
||||
'R' => "Aegyptus.otf",
|
||||
),
|
||||
"akkadian" => array( /* Cuneiform */
|
||||
'R' => "Akkadian.otf",
|
||||
),
|
||||
"quivira" => array(
|
||||
'R' => "Quivira.otf",
|
||||
),
|
||||
"eeyekunicode" => array( /* Meetei Mayek */
|
||||
'R' => "Eeyek.ttf",
|
||||
),
|
||||
"lannaalif" => array( /* Tai Tham */
|
||||
'R' => "lannaalif-v1-03.ttf",
|
||||
),
|
||||
"daibannasilbook" => array( /* New Tai Lue */
|
||||
'R' => "DBSILBR.ttf",
|
||||
),
|
||||
"garuda" => array( /* Thai */
|
||||
'R' => "Garuda.ttf",
|
||||
'B' => "Garuda-Bold.ttf",
|
||||
'I' => "Garuda-Oblique.ttf",
|
||||
'BI' => "Garuda-BoldOblique.ttf",
|
||||
),
|
||||
|
||||
|
||||
|
||||
/* SMP */
|
||||
"mph2bdamase" => array(
|
||||
'R' => "damase_v.2.ttf",
|
||||
),
|
||||
|
||||
|
||||
/* Indic */
|
||||
|
||||
|
||||
|
||||
/* Arabic fonts */
|
||||
|
||||
|
||||
|
||||
/* CJK fonts */
|
||||
"unbatang" => array( /* Korean */
|
||||
'R' => "UnBatang_0613.ttf",
|
||||
),
|
||||
"sun-exta" => array(
|
||||
'R' => "Sun-ExtA.ttf",
|
||||
'sip-ext' => 'sun-extb', /* SIP=Plane2 Unicode (extension B) */
|
||||
),
|
||||
"sun-extb" => array(
|
||||
'R' => "Sun-ExtB.ttf",
|
||||
),
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
||||
// Add fonts to this array if they contain characters in the SIP or SMP Unicode planes
|
||||
// but you do not require them. This allows a more efficient form of subsetting to be used.
|
||||
$this->BMPonly = array(
|
||||
"dejavusanscondensed",
|
||||
"dejavusans",
|
||||
"dejavuserifcondensed",
|
||||
"dejavuserif",
|
||||
"dejavusansmono",
|
||||
);
|
||||
|
||||
// These next 3 arrays do two things:
|
||||
// 1. If a font referred to in HTML/CSS is not available to mPDF, these arrays will determine whether
|
||||
// a serif/sans-serif or monospace font is substituted
|
||||
// 2. The first font in each array will be the font which is substituted in circumstances as above
|
||||
// (Otherwise the order is irrelevant)
|
||||
// Use the mPDF font-family names i.e. lowercase and no spaces (after any translations in $fonttrans)
|
||||
// Always include "sans-serif", "serif" and "monospace" etc.
|
||||
$this->sans_fonts = array('dejavusanscondensed','sans','sans-serif','cursive','fantasy','dejavusans','freesans','liberationsans',
|
||||
'arial','helvetica','verdana','geneva','lucida','arialnarrow','arialblack','arialunicodems',
|
||||
'franklin','franklingothicbook','tahoma','garuda','calibri','trebuchet','lucidagrande','microsoftsansserif',
|
||||
'trebuchetms','lucidasansunicode','franklingothicmedium','albertusmedium','xbriyaz','albasuper','quillscript',
|
||||
'humanist777','humanist777black','humanist777light','futura','hobo','segoeprint'
|
||||
|
||||
);
|
||||
|
||||
$this->serif_fonts = array('dejavuserifcondensed','serif','dejavuserif','freeserif','liberationserif',
|
||||
'timesnewroman','times','centuryschoolbookl','palatinolinotype','centurygothic',
|
||||
'bookmanoldstyle','bookantiqua','cyberbit','cambria',
|
||||
'norasi','charis','palatino','constantia','georgia','albertus','xbzar','algerian','garamond',
|
||||
);
|
||||
|
||||
$this->mono_fonts = array('dejavusansmono','mono','monospace','freemono','liberationmono','courier', 'ocrb','ocr-b','lucidaconsole',
|
||||
'couriernew','monotypecorsiva'
|
||||
);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@ -1,341 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
// Optionally define a folder which contains TTF fonts
|
||||
// mPDF will look here before looking in the usual _MPDF_TTFONTPATH
|
||||
// Useful if you already have a folder for your fonts
|
||||
// e.g. on Windows: define("_MPDF_SYSTEM_TTFONTS", 'C:/Windows/Fonts/');
|
||||
|
||||
//if (!defined("_MPDF_SYSTEM_TTFONTS")) { define("_MPDF_SYSTEM_TTFONTS", 'C:/xampp/htdocs/common/ttffonts/'); }
|
||||
|
||||
// Optionally set font(s) (names as defined below in $this->fontdata) to use for missing characters
|
||||
// when using useSubstitutions. Use a font with wide coverage - dejavusanscondensed is a good start
|
||||
// only works using subsets (otherwise would add very large file)
|
||||
// More than 1 font can be specified but each will add to the processing time of the script
|
||||
|
||||
// $this->backupSubsFont = array('dejavusanscondensed','arialunicodems','sun-exta'); // this will recognise most scripts
|
||||
$this->backupSubsFont = array('dejavusanscondensed','freeserif');
|
||||
|
||||
// Optionally set a font (name as defined below in $this->fontdata) to use for CJK characters
|
||||
// in Plane 2 Unicode (> U+20000) when using useSubstitutions.
|
||||
// Use a font like hannomb or sun-extb if available
|
||||
// only works using subsets (otherwise would add very large file)
|
||||
|
||||
$this->backupSIPFont = 'sun-extb';
|
||||
|
||||
|
||||
/*
|
||||
This array defines translations from font-family in CSS or HTML
|
||||
to the internal font-family name used in mPDF.
|
||||
Can include as many as want, regardless of which fonts are installed.
|
||||
By default mPDF will take a CSS/HTML font-family and remove spaces
|
||||
and change to lowercase e.g. "Arial Unicode MS" will be recognised as
|
||||
"arialunicodems"
|
||||
You only need to define additional translations.
|
||||
You can also use it to define specific substitutions e.g.
|
||||
'helvetica' => 'arial'
|
||||
Generic substitutions (i.e. to a sans-serif or serif font) are set
|
||||
by including the font-family in e.g. $this->sans_fonts below
|
||||
*/
|
||||
$this->fonttrans = array(
|
||||
'times' => 'timesnewroman',
|
||||
'courier' => 'couriernew',
|
||||
'trebuchet' => 'trebuchetms',
|
||||
'comic' => 'comicsansms',
|
||||
'franklin' => 'franklingothicbook',
|
||||
'ocr-b' => 'ocrb',
|
||||
'ocr-b10bt' => 'ocrb',
|
||||
'damase' => 'mph2bdamase',
|
||||
);
|
||||
|
||||
/*
|
||||
This array lists the file names of the TrueType .ttf or .otf font files
|
||||
for each variant of the (internal mPDF) font-family name.
|
||||
['R'] = Regular (Normal), others are Bold, Italic, and Bold-Italic
|
||||
Each entry must contain an ['R'] entry, but others are optional.
|
||||
Only the font (files) entered here will be available to use in mPDF.
|
||||
Put preferred default first in order
|
||||
This will be used if a named font cannot be found in any of
|
||||
$this->sans_fonts, $this->serif_fonts or $this->mono_fonts
|
||||
|
||||
['sip-ext'] = 'sun-extb'; name a related font file containing SIP characters
|
||||
['useOTL'] => 0xFF, Enable use of OTL features.
|
||||
['useKashida'] => 75, Enable use of kashida for text justification in Arabic text
|
||||
|
||||
If a .ttc TrueType collection file is referenced, the number of the font
|
||||
within the collection is required. Fonts in the collection are numbered
|
||||
starting at 1, as they appear in the .ttc file e.g.
|
||||
"cambria" => array(
|
||||
'R' => "cambria.ttc",
|
||||
'B' => "cambriab.ttf",
|
||||
'I' => "cambriai.ttf",
|
||||
'BI' => "cambriaz.ttf",
|
||||
'TTCfontID' => array(
|
||||
'R' => 1,
|
||||
),
|
||||
),
|
||||
"cambriamath" => array(
|
||||
'R' => "cambria.ttc",
|
||||
'TTCfontID' => array(
|
||||
'R' => 2,
|
||||
),
|
||||
),
|
||||
*/
|
||||
|
||||
$this->fontdata = array(
|
||||
"dejavusanscondensed" => array(
|
||||
'R' => "DejaVuSansCondensed.ttf",
|
||||
'B' => "DejaVuSansCondensed-Bold.ttf",
|
||||
'I' => "DejaVuSansCondensed-Oblique.ttf",
|
||||
'BI' => "DejaVuSansCondensed-BoldOblique.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
"dejavusans" => array(
|
||||
'R' => "DejaVuSans.ttf",
|
||||
'B' => "DejaVuSans-Bold.ttf",
|
||||
'I' => "DejaVuSans-Oblique.ttf",
|
||||
'BI' => "DejaVuSans-BoldOblique.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
"dejavuserif" => array(
|
||||
'R' => "DejaVuSerif.ttf",
|
||||
'B' => "DejaVuSerif-Bold.ttf",
|
||||
'I' => "DejaVuSerif-Italic.ttf",
|
||||
'BI' => "DejaVuSerif-BoldItalic.ttf",
|
||||
),
|
||||
"dejavuserifcondensed" => array(
|
||||
'R' => "DejaVuSerifCondensed.ttf",
|
||||
'B' => "DejaVuSerifCondensed-Bold.ttf",
|
||||
'I' => "DejaVuSerifCondensed-Italic.ttf",
|
||||
'BI' => "DejaVuSerifCondensed-BoldItalic.ttf",
|
||||
),
|
||||
"dejavusansmono" => array(
|
||||
'R' => "DejaVuSansMono.ttf",
|
||||
'B' => "DejaVuSansMono-Bold.ttf",
|
||||
'I' => "DejaVuSansMono-Oblique.ttf",
|
||||
'BI' => "DejaVuSansMono-BoldOblique.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
"freesans" => array(
|
||||
'R' => "FreeSans.ttf",
|
||||
'B' => "FreeSansBold.ttf",
|
||||
'I' => "FreeSansOblique.ttf",
|
||||
'BI' => "FreeSansBoldOblique.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"freeserif" => array(
|
||||
'R' => "FreeSerif.ttf",
|
||||
'B' => "FreeSerifBold.ttf",
|
||||
'I' => "FreeSerifItalic.ttf",
|
||||
'BI' => "FreeSerifBoldItalic.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
"freemono" => array(
|
||||
'R' => "FreeMono.ttf",
|
||||
'B' => "FreeMonoBold.ttf",
|
||||
'I' => "FreeMonoOblique.ttf",
|
||||
'BI' => "FreeMonoBoldOblique.ttf",
|
||||
),
|
||||
|
||||
|
||||
/* OCR-B font for Barcodes */
|
||||
"ocrb" => array(
|
||||
'R' => "ocrb10.ttf",
|
||||
),
|
||||
|
||||
|
||||
|
||||
/* Miscellaneous language font(s) */
|
||||
"estrangeloedessa" => array( /* Syriac */
|
||||
'R' => "SyrCOMEdessa.otf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
|
||||
"kaputaunicode" => array( /* Sinhala */
|
||||
'R' => "kaputaunicode.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
|
||||
"abyssinicasil" => array( /* Ethiopic */
|
||||
'R' => "Abyssinica_SIL.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"aboriginalsans" => array( /* Cherokee and Canadian */
|
||||
'R' => "AboriginalSansREGULAR.ttf",
|
||||
),
|
||||
"jomolhari" => array( /* Tibetan */
|
||||
'R' => "Jomolhari.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"sundaneseunicode" => array( /* Sundanese */
|
||||
'R' => "SundaneseUnicode-1.0.5.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"taiheritagepro" => array( /* Tai Viet */
|
||||
'R' => "TaiHeritagePro.ttf",
|
||||
),
|
||||
"aegean" => array(
|
||||
'R' => "Aegean.otf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"aegyptus" => array(
|
||||
'R' => "Aegyptus.otf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"akkadian" => array( /* Cuneiform */
|
||||
'R' => "Akkadian.otf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"quivira" => array(
|
||||
'R' => "Quivira.otf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"eeyekunicode" => array( /* Meetei Mayek */
|
||||
'R' => "Eeyek.ttf",
|
||||
),
|
||||
"lannaalif" => array( /* Tai Tham */
|
||||
'R' => "lannaalif-v1-03.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"daibannasilbook" => array( /* New Tai Lue */
|
||||
'R' => "DBSILBR.ttf",
|
||||
),
|
||||
"garuda" => array( /* Thai */
|
||||
'R' => "Garuda.ttf",
|
||||
'B' => "Garuda-Bold.ttf",
|
||||
'I' => "Garuda-Oblique.ttf",
|
||||
'BI' => "Garuda-BoldOblique.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"khmeros" => array( /* Khmer */
|
||||
'R' => "KhmerOS.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"dhyana" => array( /* Lao fonts */
|
||||
'R' => "Dhyana-Regular.ttf",
|
||||
'B' => "Dhyana-Bold.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
|
||||
"tharlon" => array( /* Myanmar / Burmese */
|
||||
'R' => "Tharlon-Regular.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"padaukbook" => array( /* Myanmar / Burmese */
|
||||
'R' => "Padauk-book.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"zawgyi-one" => array( /* Myanmar / Burmese */
|
||||
'R' => "ZawgyiOne.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"ayar" => array( /* Myanmar / Burmese */
|
||||
'R' => "ayar.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
|
||||
"taameydavidclm" => array( /* Hebrew with full Niqud and Cantillation */
|
||||
'R' => "TaameyDavidCLM-Medium.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
|
||||
|
||||
/* SMP */
|
||||
"mph2bdamase" => array(
|
||||
'R' => "damase_v.2.ttf",
|
||||
),
|
||||
|
||||
|
||||
/* Indic */
|
||||
"lohitkannada" => array(
|
||||
'R' => "Lohit-Kannada.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
"pothana2000" => array(
|
||||
'R' => "Pothana2000.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
),
|
||||
|
||||
|
||||
|
||||
/* Arabic fonts */
|
||||
"xbriyaz" => array(
|
||||
'R' => "XB Riyaz.ttf",
|
||||
'B' => "XB RiyazBd.ttf",
|
||||
'I' => "XB RiyazIt.ttf",
|
||||
'BI' => "XB RiyazBdIt.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
"lateef" => array( /* Sindhi, Pashto and Urdu */
|
||||
'R' => "LateefRegOT.ttf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
"kfgqpcuthmantahanaskh" => array( /* KFGQPC Uthman Taha Naskh - Koranic */
|
||||
'R' => "Uthman.otf",
|
||||
'useOTL' => 0xFF,
|
||||
'useKashida' => 75,
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
/* CJK fonts */
|
||||
"sun-exta" => array(
|
||||
'R' => "Sun-ExtA.ttf",
|
||||
'sip-ext' => 'sun-extb', /* SIP=Plane2 Unicode (extension B) */
|
||||
),
|
||||
"sun-extb" => array(
|
||||
'R' => "Sun-ExtB.ttf",
|
||||
),
|
||||
"unbatang" => array( /* Korean */
|
||||
'R' => "UnBatang_0613.ttf",
|
||||
),
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
||||
// Add fonts to this array if they contain characters in the SIP or SMP Unicode planes
|
||||
// but you do not require them. This allows a more efficient form of subsetting to be used.
|
||||
$this->BMPonly = array(
|
||||
"dejavusanscondensed",
|
||||
"dejavusans",
|
||||
"dejavuserifcondensed",
|
||||
"dejavuserif",
|
||||
"dejavusansmono",
|
||||
);
|
||||
|
||||
// These next 3 arrays do two things:
|
||||
// 1. If a font referred to in HTML/CSS is not available to mPDF, these arrays will determine whether
|
||||
// a serif/sans-serif or monospace font is substituted
|
||||
// 2. The first font in each array will be the font which is substituted in circumstances as above
|
||||
// (Otherwise the order is irrelevant)
|
||||
// Use the mPDF font-family names i.e. lowercase and no spaces (after any translations in $fonttrans)
|
||||
// Always include "sans-serif", "serif" and "monospace" etc.
|
||||
$this->sans_fonts = array('dejavusanscondensed','sans','sans-serif','cursive','fantasy','dejavusans','freesans','liberationsans',
|
||||
'arial','helvetica','verdana','geneva','lucida','arialnarrow','arialblack','arialunicodems',
|
||||
'franklin','franklingothicbook','tahoma','garuda','calibri','trebuchet','lucidagrande','microsoftsansserif',
|
||||
'trebuchetms','lucidasansunicode','franklingothicmedium','albertusmedium','xbriyaz','albasuper','quillscript',
|
||||
'humanist777','humanist777black','humanist777light','futura','hobo','segoeprint'
|
||||
|
||||
);
|
||||
|
||||
$this->serif_fonts = array('dejavuserifcondensed','serif','dejavuserif','freeserif','liberationserif',
|
||||
'timesnewroman','times','centuryschoolbookl','palatinolinotype','centurygothic',
|
||||
'bookmanoldstyle','bookantiqua','cyberbit','cambria',
|
||||
'norasi','charis','palatino','constantia','georgia','albertus','xbzar','algerian','garamond',
|
||||
);
|
||||
|
||||
$this->mono_fonts = array('dejavusansmono','mono','monospace','freemono','liberationmono','courier', 'ocrb','ocr-b','lucidaconsole',
|
||||
'couriernew','monotypecorsiva'
|
||||
);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@ -1,501 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
mPDF recognises IETF language tags as:
|
||||
- a single primary language subtag composed of a two letter language code from ISO 639-1 (2002), or a three letter code from ISO 639-2 (1998), ISO 639-3 (2007) or ISO 639-5 (2008) (usually written in lower case);
|
||||
- an optional script subtag, composed of a four letter script code from ISO 15924 (usually written in title case);
|
||||
- an optional region subtag composed of a two letter country code from ISO 3166-1 alpha-2 (usually written in upper case), or a three digit code from UN M.49 for geographical regions;
|
||||
Subtags are not case sensitive, but the specification recommends using the same case as in the Language Subtag Registry, where region subtags are uppercase, script subtags are titlecase and all other subtags are lowercase.
|
||||
|
||||
Region subtags are often deprecated by the registration of specific primary language subtags from ISO 639-3 which are now "preferred values". For example, "ar-DZ" is deprecated with the preferred value "arq" for Algerian Spoken Arabic;
|
||||
|
||||
Example: Serbian written in the Cyrillic (sr-Cyrl) or Latin (sr-Latn) script
|
||||
|
||||
und (for undetermined or undefined) is used in situations in which a script must be indicated but the language cannot be identified.
|
||||
e.g. und-Cyrl is an undefined language written in Cyrillic script.
|
||||
*/
|
||||
|
||||
function GetLangOpts($llcc, $adobeCJK, &$fontdata) {
|
||||
$tags = preg_split('/-/',$llcc);
|
||||
$lang = strtolower($tags[0]);
|
||||
$country = '';
|
||||
$script = '';
|
||||
if (isset($tags[1]) && $tags[1]) {
|
||||
if (strlen($tags[1]) == 4) { $script = strtolower($tags[1]); }
|
||||
else { $country = strtolower($tags[1]); }
|
||||
}
|
||||
if (isset($tags[2]) && $tags[2]) { $country = strtolower($tags[2]); }
|
||||
|
||||
$unifont = "";
|
||||
$coreSuitable = false;
|
||||
|
||||
switch($lang){
|
||||
|
||||
|
||||
|
||||
|
||||
/* European */
|
||||
CASE "en": CASE "eng": // English // LATIN
|
||||
CASE "eu": CASE "eus": // Basque
|
||||
CASE "br": CASE "bre": // Breton
|
||||
CASE "ca": CASE "cat": // Catalan
|
||||
CASE "co": CASE "cos": // Corsican
|
||||
CASE "kw": CASE "cor": // Cornish
|
||||
CASE "cy": CASE "cym": // Welsh
|
||||
CASE "cs": CASE "ces": // Czech
|
||||
CASE "da": CASE "dan": // Danish
|
||||
CASE "nl": CASE "nld": // Dutch
|
||||
CASE "et": CASE "est": // Estonian
|
||||
CASE "fo": CASE "fao": // Faroese
|
||||
CASE "fi": CASE "fin": // Finnish
|
||||
CASE "fr": CASE "fra": // French
|
||||
CASE "gl": CASE "glg": // Galician
|
||||
CASE "de": CASE "deu": // German
|
||||
CASE "ht": CASE "hat": // Haitian; Haitian Creole
|
||||
CASE "hu": CASE "hun": // Hungarian
|
||||
CASE "ga": CASE "gle": // Irish
|
||||
CASE "is": CASE "isl": // Icelandic
|
||||
CASE "it": CASE "ita": // Italian
|
||||
CASE "la": CASE "lat": // Latin
|
||||
CASE "lb": CASE "ltz": // Luxembourgish
|
||||
CASE "li": CASE "lim": // Limburgish
|
||||
CASE "lt": CASE "lit": // Lithuanian
|
||||
CASE "lv": CASE "lav": // Latvian
|
||||
CASE "gv": CASE "glv": // Manx
|
||||
CASE "no": CASE "nor": // Norwegian
|
||||
CASE "nn": CASE "nno": // Norwegian Nynorsk
|
||||
CASE "nb": CASE "nob": // Norwegian Bokm<6B>l
|
||||
CASE "pl": CASE "pol": // Polish
|
||||
CASE "pt": CASE "por": // Portuguese
|
||||
CASE "ro": CASE "ron": // Romanian
|
||||
CASE "gd": CASE "gla": // Scottish Gaelic
|
||||
CASE "es": CASE "spa": // Spanish
|
||||
CASE "sv": CASE "swe": // Swedish
|
||||
CASE "sl": CASE "slv": // Slovene
|
||||
CASE "sk": CASE "slk": // Slovak
|
||||
$unifont = "dejavusanscondensed";
|
||||
// Edit this value to define how mPDF behaves when using new mPDF('-x')
|
||||
// If set to TRUE, mPDF will use Adobe core fonts only when it recognises the languages above
|
||||
$coreSuitable = true;
|
||||
break;
|
||||
|
||||
|
||||
CASE "ru": CASE "rus": // Russian // CYRILLIC
|
||||
CASE "ab": CASE "abk": // Abkhaz
|
||||
CASE "av": CASE "ava": // Avaric
|
||||
CASE "ba": CASE "bak": // Bashkir
|
||||
CASE "be": CASE "bel": // Belarusian
|
||||
CASE "bg": CASE "bul": // Bulgarian
|
||||
CASE "ce": CASE "che": // Chechen
|
||||
CASE "cv": CASE "chv": // Chuvash
|
||||
CASE "kk": CASE "kaz": // Kazakh
|
||||
CASE "kv": CASE "kom": // Komi
|
||||
CASE "ky": CASE "kir": // Kyrgyz
|
||||
CASE "mk": CASE "mkd": // Macedonian
|
||||
CASE "cu": CASE "chu": // Old Church Slavonic
|
||||
CASE "os": CASE "oss": // Ossetian
|
||||
CASE "sr": CASE "srp": // Serbian
|
||||
CASE "tg": CASE "tgk": // Tajik
|
||||
CASE "tt": CASE "tat": // Tatar
|
||||
CASE "tk": CASE "tuk": // Turkmen
|
||||
CASE "uk": CASE "ukr": // Ukrainian
|
||||
$unifont = "dejavusanscondensed"; /* freeserif best coverage for supplements etc. */
|
||||
break;
|
||||
|
||||
|
||||
CASE "hy": CASE "hye": // ARMENIAN
|
||||
$unifont = "dejavusans";
|
||||
break;
|
||||
CASE "ka": CASE "kat": // GEORGIAN
|
||||
$unifont = "dejavusans";
|
||||
break;
|
||||
|
||||
CASE "el": CASE "ell": // GREEK
|
||||
$unifont = "dejavusanscondensed";
|
||||
break;
|
||||
CASE "cop": // COPTIC
|
||||
$unifont = "quivira";
|
||||
break;
|
||||
|
||||
CASE "got": // GOTHIC
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
/* African */
|
||||
CASE "nqo": // NKO
|
||||
$unifont = "dejavusans";
|
||||
break;
|
||||
//CASE "bax": // BAMUM
|
||||
//CASE "ha": CASE "hau": // Hausa
|
||||
CASE "vai": // VAI
|
||||
$unifont = "freesans";
|
||||
break;
|
||||
CASE "am": CASE "amh": // Amharic ETHIOPIC
|
||||
CASE "ti": CASE "tir": // Tigrinya ETHIOPIC
|
||||
$unifont = "abyssinicasil";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/* Middle Eastern */
|
||||
CASE "ar": CASE "ara": // Arabic NB Arabic text identified by Autofont will be marked as und-Arab
|
||||
$unifont = "xbriyaz";
|
||||
break;
|
||||
CASE "fa": CASE "fas": // Persian (Farsi)
|
||||
$unifont = "xbriyaz";
|
||||
break;
|
||||
CASE "ps": CASE "pus": // Pashto
|
||||
$unifont = "xbriyaz";
|
||||
break;
|
||||
CASE "ku": CASE "kur": // Kurdish
|
||||
$unifont = "xbriyaz";
|
||||
break;
|
||||
CASE "ur": CASE "urd": // Urdu
|
||||
$unifont = "xbriyaz";
|
||||
break;
|
||||
CASE "he": CASE "heb": // HEBREW
|
||||
CASE "yi": CASE "yid": // Yiddish
|
||||
$unifont = "taameydavidclm"; // dejavusans,dejavusanscondensed,freeserif are fine if you do not need cantillation marks
|
||||
break;
|
||||
|
||||
|
||||
CASE "syr": // SYRIAC
|
||||
$unifont = "estrangeloedessa";
|
||||
break;
|
||||
|
||||
|
||||
//CASE "arc": // IMPERIAL_ARAMAIC
|
||||
//CASE ""ae: // AVESTAN
|
||||
CASE "xcr": // CARIAN
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
CASE "xlc": // LYCIAN
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
CASE "xld": // LYDIAN
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
//CASE "mid": // MANDAIC
|
||||
//CASE "peo": // OLD_PERSIAN
|
||||
CASE "phn": // PHOENICIAN
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
//CASE "smp": // SAMARITAN
|
||||
CASE "uga": // UGARITIC
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
|
||||
|
||||
/* Central Asian */
|
||||
CASE "bo": CASE "bod": // TIBETAN
|
||||
CASE "dz": CASE "dzo": // Dzongkha
|
||||
$unifont = "jomolhari";
|
||||
break;
|
||||
//CASE "mn": CASE "mon": // MONGOLIAN (Vertical script)
|
||||
|
||||
|
||||
//CASE "ug": CASE "uig": // Uyghur
|
||||
//CASE "uz": CASE "uzb": // Uzbek
|
||||
//CASE "az": CASE "azb": // South Azerbaijani
|
||||
|
||||
|
||||
/* South Asian */
|
||||
CASE "as": CASE "asm": // Assamese
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "bn": CASE "ben": // BENGALI; Bangla
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "ks": CASE "kas": // Kashmiri
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "hi": CASE "hin": // Hindi DEVANAGARI
|
||||
CASE "bh": CASE "bih": // Bihari (Bhojpuri, Magahi, and Maithili)
|
||||
CASE "sa": CASE "san": // Sanskrit
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "gu": CASE "guj": // Gujarati
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "pa": CASE "pan": // Panjabi, Punjabi GURMUKHI
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "kn": CASE "kan": // Kannada
|
||||
$unifont = "lohitkannada";
|
||||
break;
|
||||
CASE "mr": CASE "mar": // Marathi
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "ml": CASE "mal": // MALAYALAM
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "ne": CASE "nep": // Nepali
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "or": CASE "ori": // ORIYA
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "si": CASE "sin": // SINHALA
|
||||
$unifont = "kaputaunicode";
|
||||
break;
|
||||
CASE "ta": CASE "tam": // TAMIL
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
CASE "te": CASE "tel": // TELUGU
|
||||
$unifont = "pothana2000";
|
||||
break;
|
||||
|
||||
|
||||
// Sindhi (Arabic or Devanagari)
|
||||
CASE "sd": CASE "snd": // Sindhi
|
||||
if ($country == "IN") { $unifont = "freeserif"; }
|
||||
else if ($country == "PK") { $unifont = "lateef"; }
|
||||
else { $unifont = "lateef"; }
|
||||
break;
|
||||
|
||||
|
||||
//CASE "ccp": // CHAKMA
|
||||
//CASE "lep": // LEPCHA
|
||||
CASE "lif": // LIMBU
|
||||
$unifont = "sun-exta";
|
||||
break;
|
||||
//CASE "sat": // OL_CHIKI
|
||||
//CASE "saz": // SAURASHTRA
|
||||
CASE "syl": // SYLOTI_NAGRI
|
||||
$unifont = "mph2bdamase";
|
||||
break;
|
||||
//CASE "dgo": // TAKRI
|
||||
CASE "dv": CASE "div": // Divehi; Maldivian THAANA
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/* South East Asian */
|
||||
CASE "km": CASE "khm": // KHMER
|
||||
$unifont = "khmeros";
|
||||
break;
|
||||
CASE "lo": CASE "lao": // LAO
|
||||
$unifont = "dhyana";
|
||||
break;
|
||||
CASE "my": CASE "mya": // MYANMAR Burmese
|
||||
$unifont = "tharlon"; // zawgyi-one is non-unicode compliant but in wide usage
|
||||
// ayar is also not strictly compliant
|
||||
// padaukbook is unicode compliant
|
||||
break;
|
||||
CASE "th": CASE "tha": // THAI
|
||||
$unifont = "garuda";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
// VIETNAMESE
|
||||
CASE "vi": CASE "vie": // Vietnamese
|
||||
$unifont = "dejavusanscondensed";
|
||||
break;
|
||||
|
||||
|
||||
//CASE "ms": CASE "msa": // Malay
|
||||
|
||||
|
||||
//CASE "ban": // BALINESE
|
||||
//CASE "bya": // BATAK
|
||||
CASE "bug": // BUGINESE
|
||||
$unifont = "freeserif";
|
||||
break;
|
||||
//CASE "cjm": // CHAM
|
||||
//CASE "jv": // JAVANESE
|
||||
CASE "su": // SUNDANESE
|
||||
$unifont = "sundaneseunicode";
|
||||
break;
|
||||
CASE "tdd": // TAI_LE
|
||||
$unifont = "tharlon";
|
||||
break;
|
||||
CASE "blt": // TAI_VIET
|
||||
$unifont = "taiheritagepro";
|
||||
break;
|
||||
|
||||
|
||||
/* Phillipine */
|
||||
CASE "bku": // BUHID
|
||||
$unifont = "quivira";
|
||||
break;
|
||||
CASE "hnn": // HANUNOO
|
||||
$unifont = "quivira";
|
||||
break;
|
||||
CASE "tl": // TAGALOG
|
||||
$unifont = "quivira";
|
||||
break;
|
||||
CASE "tbw": // TAGBANWA
|
||||
$unifont = "quivira";
|
||||
break;
|
||||
|
||||
|
||||
/* East Asian */
|
||||
CASE "zh": CASE "zho": // Chinese
|
||||
if ($country == "HK" || $country == "TW") {
|
||||
if ($adobeCJK) { $unifont = "big5"; }
|
||||
else { $unifont = "sun-exta"; }
|
||||
}
|
||||
else if ($country == "CN") {
|
||||
if ($adobeCJK) { $unifont = "gb"; }
|
||||
else { $unifont = "sun-exta"; }
|
||||
}
|
||||
else {
|
||||
if ($adobeCJK) { $unifont = "gb"; }
|
||||
else { $unifont = "sun-exta"; }
|
||||
}
|
||||
break;
|
||||
CASE "ko": CASE "kor": // HANGUL Korean
|
||||
if ($adobeCJK) { $unifont = "uhc"; }
|
||||
else { $unifont = "unbatang"; }
|
||||
break;
|
||||
CASE "ja": CASE "jpn": // Japanese HIRAGANA KATAKANA
|
||||
if ($adobeCJK) { $unifont = "sjis"; }
|
||||
else { $unifont = "sun-exta"; }
|
||||
break;
|
||||
CASE "ii": CASE "iii": // Nuosu; Yi
|
||||
if ($adobeCJK) { $unifont = "gb"; }
|
||||
else { $unifont = "sun-exta"; }
|
||||
CASE "lis": // LISU
|
||||
$unifont = "quivira";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/* American */
|
||||
CASE "chr": // CHEROKEE
|
||||
CASE "oj": CASE "oji": // Ojibwe; Chippewa
|
||||
CASE "cr": CASE "cre": // Cree CANADIAN_ABORIGINAL
|
||||
CASE "iu": CASE "iku": // Inuktitut
|
||||
$unifont = "aboriginalsans";
|
||||
break;
|
||||
|
||||
|
||||
/* Undetermined language - script used */
|
||||
CASE "und":
|
||||
|
||||
switch($script){
|
||||
|
||||
/* European */
|
||||
CASE "latn": // LATIN
|
||||
$unifont = "dejavusanscondensed";
|
||||
break;
|
||||
CASE "cyrl": // CYRILLIC
|
||||
$unifont = "dejavusanscondensed"; /* freeserif best coverage for supplements etc. */
|
||||
break;
|
||||
CASE "cprt": // CYPRIOT
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
CASE "glag": // GLAGOLITIC
|
||||
$unifont = "mph2bdamase";
|
||||
break;
|
||||
CASE "linb": // LINEAR_B
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
CASE "ogam": // OGHAM
|
||||
$unifont = "dejavusans";
|
||||
break;
|
||||
CASE "ital": // OLD_ITALIC
|
||||
$unifont = "aegean";
|
||||
break;
|
||||
CASE "runr": // RUNIC
|
||||
$unifont = "sun-exta";
|
||||
break;
|
||||
CASE "shaw": // SHAVIAN
|
||||
$unifont = "mph2bdamase";
|
||||
break;
|
||||
|
||||
/* African */
|
||||
CASE "egyp": // EGYPTIAN_HIEROGLYPHS
|
||||
$unifont = "aegyptus";
|
||||
break;
|
||||
CASE "ethi": // ETHIOPIC
|
||||
$unifont = "abyssinicasil";
|
||||
break;
|
||||
//CASE "merc": // MEROITIC_CURSIVE
|
||||
//CASE "mero": // MEROITIC_HIEROGLYPHS
|
||||
CASE "osma": // OSMANYA
|
||||
$unifont = "mph2bdamase";
|
||||
break;
|
||||
CASE "tfng": // TIFINAGH
|
||||
$unifont = "dejavusans";
|
||||
break;
|
||||
|
||||
/* Middle Eastern */
|
||||
CASE "arab": // ARABIC
|
||||
$unifont = "xbriyaz";
|
||||
break;
|
||||
CASE "xsux": // CUNEIFORM
|
||||
$unifont = "akkadian";
|
||||
break;
|
||||
//CASE "sarb": // OLD_SOUTH_ARABIAN
|
||||
//CASE "prti": // INSCRIPTIONAL_PARTHIAN
|
||||
//CASE "phli": // INSCRIPTIONAL_PAHLAVI
|
||||
|
||||
|
||||
/* Central Asian */
|
||||
//CASE "orkh": // OLD_TURKIC
|
||||
//CASE "phag": // PHAGS_PA (Vertical script)
|
||||
|
||||
/* South Asian */
|
||||
//CASE "brah": // BRAHMI
|
||||
//CASE "kthi": // KAITHI
|
||||
CASE "khar": // KHAROSHTHI
|
||||
$unifont = "mph2bdamase";
|
||||
break;
|
||||
CASE "mtei": // MEETEI_MAYEK
|
||||
$unifont = "eeyekunicode";
|
||||
break;
|
||||
//CASE "shrd": // SHARADA
|
||||
//CASE "sora": // SORA_SOMPENG
|
||||
|
||||
/* South East Asian */
|
||||
CASE "kali": // KAYAH_LI
|
||||
$unifont = "freemono";
|
||||
break;
|
||||
//CASE "rjng": // REJANG
|
||||
CASE "lana": // TAI_THAM
|
||||
$unifont = "lannaalif";
|
||||
break;
|
||||
CASE "talu": // NEW_TAI_LUE
|
||||
$unifont = "daibannasilbook";
|
||||
break;
|
||||
|
||||
/* East Asian */
|
||||
CASE "hans": // HAN (SIMPLIFIED)
|
||||
if ($adobeCJK) { $unifont = "gb"; }
|
||||
else { $unifont = "sun-exta"; }
|
||||
break;
|
||||
CASE "bopo": // BOPOMOFO
|
||||
$unifont = "sun-exta";
|
||||
break;
|
||||
//CASE "plrd": // MIAO
|
||||
CASE "yiii": // YI
|
||||
$unifont = "sun-exta";
|
||||
break;
|
||||
|
||||
/* American */
|
||||
CASE "dsrt": // DESERET
|
||||
$unifont = "mph2bdamase";
|
||||
break;
|
||||
|
||||
/* Other */
|
||||
CASE "brai": // BRAILLE
|
||||
$unifont = "dejavusans";
|
||||
break;
|
||||
|
||||
} // endswitch
|
||||
break;
|
||||
|
||||
|
||||
} // endswitch
|
||||
|
||||
|
||||
return array($coreSuitable ,$unifont);
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
for($i=0;$i<=255;$i++)
|
||||
$cw[chr($i)]=600;
|
||||
|
||||
//$desc=array('Ascent'=>629,'Descent'=>-157,'CapHeight'=>562,'FontBBox'=>'[-23 -250 715 805]');
|
||||
$desc=array('Flags'=>33,'FontBBox'=>'[-23 -250 715 805]','ItalicAngle'=>0,'Ascent'=>805,'Descent'=>-250,'Leading'=>0,'CapHeight'=>562,'XHeight'=>426,'StemV'=>51,'StemH'=>51,'AvgWidth'=>600,'MaxWidth'=>600,'MissingWidth'=>600);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
|
||||
?>
|
||||
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
for($i=0;$i<=255;$i++)
|
||||
$cw[chr($i)]=600;
|
||||
//$desc=array('Ascent'=>629,'Descent'=>-157,'CapHeight'=>562,'FontBBox'=>'[-113 -250 749 801]');
|
||||
$desc=array('Flags'=>33,'FontBBox'=>'[-113 -250 749 801]','ItalicAngle'=>0,'Ascent'=>801,'Descent'=>-250,'Leading'=>0,'CapHeight'=>562,'XHeight'=>439,'StemV'=>106,'StemH'=>84,'AvgWidth'=>600,'MaxWidth'=>600,'MissingWidth'=>600);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
|
||||
|
||||
?>
|
||||
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
for($i=0;$i<=255;$i++)
|
||||
$cw[chr($i)]=600;
|
||||
//$desc=array('Ascent'=>629,'Descent'=>-157,'CapHeight'=>562,'FontBBox'=>'[-57 -250 869 801]');
|
||||
$desc=array('Flags'=>97,'FontBBox'=>'[-57 -250 869 801]','ItalicAngle'=>-12,'Ascent'=>801,'Descent'=>-250,'Leading'=>0,'CapHeight'=>562,'XHeight'=>439,'StemV'=>106,'StemH'=>84,'AvgWidth'=>600,'MaxWidth'=>600,'MissingWidth'=>600);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
|
||||
|
||||
?>
|
||||
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
for($i=0;$i<=255;$i++)
|
||||
$cw[chr($i)]=600;
|
||||
$desc=array('Ascent'=>629,'Descent'=>-157,'CapHeight'=>562,'FontBBox'=>'[-27 -250 849 805]');
|
||||
$desc=array('Flags'=>97,'FontBBox'=>'[-27 -250 849 805]','ItalicAngle'=>-12,'Ascent'=>805,'Descent'=>-250,'Leading'=>0,'CapHeight'=>562,'XHeight'=>426,'StemV'=>51,'StemH'=>51,'AvgWidth'=>600,'MaxWidth'=>600,'MissingWidth'=>600);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
|
||||
|
||||
?>
|
||||
@ -1,21 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
|
||||
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
|
||||
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
|
||||
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
||||
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||
|
||||
//$desc=array('Ascent'=>718,'Descent'=>-207,'CapHeight'=>718,'FontBBox'=>'[-166 -225 1000 931]');
|
||||
$desc=array('Flags'=>32,'FontBBox'=>'[-166 -225 1000 931]','ItalicAngle'=>0,'Ascent'=>931,'Descent'=>-225,'Leading'=>0,'CapHeight'=>718,'XHeight'=>523,'StemV'=>88,'StemH'=>76,'AvgWidth'=>513,'MaxWidth'=>1015,'MissingWidth'=>513);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -74, ), chr(65)=> array ( chr(84)=> -74, chr(86)=> -74, chr(87)=> -37, chr(89)=> -74, chr(118)=> -18, chr(119)=> -18, chr(121)=> -18, chr(146)=> -74, ), chr(70)=> array ( chr(44)=> -110, chr(46)=> -110, chr(65)=> -55, ), chr(76)=> array ( chr(84)=> -74, chr(86)=> -74, chr(87)=> -74, chr(89)=> -74, chr(121)=> -37, chr(146)=> -55, ), chr(80)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -74, ), chr(82)=> array ( chr(84)=> -18, chr(86)=> -18, chr(87)=> -18, chr(89)=> -18, ), chr(84)=> array ( chr(44)=> -110, chr(46)=> -110, chr(58)=> -110, chr(65)=> -74, chr(79)=> -18, chr(97)=> -110, chr(99)=> -110, chr(101)=> -110, chr(105)=> -37, chr(111)=> -110, chr(114)=> -37, chr(115)=> -110, chr(117)=> -37, chr(119)=> -55, chr(121)=> -55, ), chr(86)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -37, chr(65)=> -74, chr(97)=> -74, chr(101)=> -55, chr(105)=> -18, chr(111)=> -55, chr(114)=> -37, chr(117)=> -37, chr(121)=> -37, ), chr(87)=> array ( chr(44)=> -55, chr(46)=> -55, chr(58)=> -18, chr(65)=> -37, chr(97)=> -37, chr(101)=> -18, chr(105)=> 0, chr(111)=> -18, chr(114)=> -18, chr(117)=> -18, chr(121)=> -8, ), chr(89)=> array ( chr(44)=> -128, chr(46)=> -128, chr(58)=> -55, chr(65)=> -74, chr(97)=> -74, chr(101)=> -91, chr(105)=> -37, chr(111)=> -91, chr(112)=> -74, chr(113)=> -91, chr(117)=> -55, chr(118)=> -55, ), chr(102)=> array ( chr(102)=> -18, chr(146)=> 18, ), chr(114)=> array ( chr(44)=> -55, chr(46)=> -55, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(119)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(121)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(145)=> array ( chr(145)=> -18, ), chr(146)=> array ( chr(115)=> -18, chr(146)=> -18, ), );
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
|
||||
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
|
||||
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
|
||||
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
||||
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
||||
|
||||
//$desc=array('Ascent'=>718,'Descent'=>-207,'CapHeight'=>718,'FontBBox'=>'[-170 -228 1003 962]');
|
||||
$desc=array('Flags'=>32,'FontBBox'=>'[-170 -228 1003 962]','ItalicAngle'=>0,'Ascent'=>962,'Descent'=>-228,'Leading'=>0,'CapHeight'=>718,'XHeight'=>532,'StemV'=>140,'StemH'=>118,'AvgWidth'=>535,'MaxWidth'=>1000,'MissingWidth'=>535);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -55, ), chr(65)=> array ( chr(84)=> -74, chr(86)=> -74, chr(87)=> -55, chr(89)=> -91, chr(118)=> -37, chr(119)=> -18, chr(121)=> -37, chr(146)=> -55, ), chr(70)=> array ( chr(44)=> -110, chr(46)=> -110, chr(65)=> -55, ), chr(76)=> array ( chr(84)=> -74, chr(86)=> -74, chr(87)=> -55, chr(89)=> -91, chr(121)=> -37, chr(146)=> -55, ), chr(80)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -74, ), chr(82)=> array ( chr(86)=> -18, chr(87)=> -18, chr(89)=> -37, ), chr(84)=> array ( chr(44)=> -110, chr(46)=> -110, chr(58)=> -110, chr(65)=> -74, chr(79)=> -18, chr(97)=> -74, chr(99)=> -74, chr(101)=> -74, chr(105)=> -18, chr(111)=> -74, chr(114)=> -55, chr(115)=> -74, chr(117)=> -74, chr(119)=> -74, chr(121)=> -74, ), chr(86)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -55, chr(65)=> -74, chr(97)=> -55, chr(101)=> -55, chr(105)=> -18, chr(111)=> -74, chr(114)=> -55, chr(117)=> -37, chr(121)=> -37, ), chr(87)=> array ( chr(44)=> -55, chr(46)=> -55, chr(58)=> -18, chr(65)=> -55, chr(97)=> -37, chr(101)=> -18, chr(105)=> -8, chr(111)=> -18, chr(114)=> -18, chr(117)=> -18, chr(121)=> -18, ), chr(89)=> array ( chr(44)=> -110, chr(46)=> -110, chr(58)=> -74, chr(65)=> -91, chr(97)=> -55, chr(101)=> -55, chr(105)=> -37, chr(111)=> -74, chr(112)=> -55, chr(113)=> -74, chr(117)=> -55, chr(118)=> -55, ), chr(102)=> array ( chr(146)=> 18, ), chr(114)=> array ( chr(44)=> -55, chr(46)=> -55, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(119)=> array ( chr(44)=> -37, chr(46)=> -37, ), chr(121)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(145)=> array ( chr(145)=> -37, ), chr(146)=> array ( chr(115)=> -37, chr(146)=> -37, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
|
||||
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
|
||||
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
|
||||
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
||||
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
||||
|
||||
//$desc=array('Ascent'=>718,'Descent'=>-207,'CapHeight'=>718,'FontBBox'=>'[-174 -228 1114 962]');
|
||||
$desc=array('Flags'=>96,'FontBBox'=>'[-174 -228 1114 962]','ItalicAngle'=>-12,'Ascent'=>962,'Descent'=>-228,'Leading'=>0,'CapHeight'=>718,'XHeight'=>532,'StemV'=>140,'StemH'=>118,'AvgWidth'=>535,'MaxWidth'=>1000,'MissingWidth'=>535);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -74, ), chr(65)=> array ( chr(84)=> -74, chr(86)=> -74, chr(87)=> -55, chr(89)=> -74, chr(146)=> -55, ), chr(70)=> array ( chr(44)=> -110, chr(46)=> -110, chr(65)=> -55, ), chr(76)=> array ( chr(84)=> -74, chr(86)=> -55, chr(87)=> -55, chr(89)=> -74, chr(146)=> -74, ), chr(80)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -74, ), chr(82)=> array ( chr(84)=> -18, chr(87)=> -18, chr(89)=> -18, ), chr(84)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -74, chr(65)=> -74, chr(79)=> -18, chr(97)=> -37, chr(99)=> -37, chr(101)=> -37, chr(105)=> -18, chr(111)=> -37, chr(114)=> -18, chr(115)=> -37, chr(117)=> -18, chr(119)=> -37, chr(121)=> -37, ), chr(86)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -37, chr(65)=> -74, chr(97)=> -37, chr(101)=> -37, chr(105)=> -37, chr(111)=> -37, chr(114)=> -18, chr(117)=> -18, chr(121)=> -18, ), chr(87)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -37, chr(65)=> -55, chr(97)=> -18, chr(101)=> -18, chr(105)=> -8, chr(111)=> -18, chr(114)=> -18, chr(117)=> -18, chr(121)=> -18, ), chr(89)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -55, chr(65)=> -74, chr(97)=> -37, chr(101)=> -37, chr(105)=> -37, chr(111)=> -37, chr(112)=> -37, chr(113)=> -37, chr(117)=> -37, chr(118)=> -37, ), chr(102)=> array ( chr(102)=> -18, chr(146)=> 18, ), chr(114)=> array ( chr(44)=> -55, chr(46)=> -55, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(119)=> array ( chr(44)=> -37, chr(46)=> -37, ), chr(121)=> array ( chr(44)=> -37, chr(46)=> -37, ), chr(145)=> array ( chr(145)=> -37, ), chr(146)=> array ( chr(115)=> -18, chr(116)=> 18, chr(146)=> -37, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
|
||||
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
|
||||
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
|
||||
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
||||
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||
|
||||
//$desc=array('Ascent'=>718,'Descent'=>-207,'CapHeight'=>718,'FontBBox'=>'[-170 -225 1116 931]');
|
||||
$desc=array('Flags'=>96,'FontBBox'=>'[-170 -225 1116 931]','ItalicAngle'=>-12,'Ascent'=>931,'Descent'=>-225,'Leading'=>0,'CapHeight'=>718,'XHeight'=>523,'StemV'=>88,'StemH'=>76,'AvgWidth'=>513,'MaxWidth'=>1015,'MissingWidth'=>513);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -74, ), chr(65)=> array ( chr(84)=> -74, chr(86)=> -55, chr(87)=> -18, chr(89)=> -74, chr(118)=> -18, chr(119)=> -18, chr(121)=> -8, chr(146)=> -37, ), chr(70)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -74, ), chr(76)=> array ( chr(84)=> -74, chr(86)=> -55, chr(87)=> -37, chr(89)=> -91, chr(121)=> -18, chr(146)=> -55, ), chr(80)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -74, ), chr(82)=> array ( chr(84)=> -18, chr(86)=> -18, chr(87)=> -18, chr(89)=> -37, ), chr(84)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -74, chr(65)=> -74, chr(79)=> -18, chr(97)=> -91, chr(99)=> -91, chr(101)=> -91, chr(105)=> -8, chr(111)=> -91, chr(114)=> -74, chr(115)=> -91, chr(117)=> -74, chr(119)=> -74, chr(121)=> -74, ), chr(86)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -18, chr(65)=> -55, chr(97)=> -37, chr(101)=> -37, chr(105)=> -18, chr(111)=> -37, chr(114)=> -18, chr(117)=> -18, chr(121)=> -18, ), chr(87)=> array ( chr(44)=> -37, chr(46)=> -37, chr(65)=> -18, chr(97)=> -18, chr(101)=> -18, chr(105)=> -8, ), chr(89)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -37, chr(65)=> -55, chr(97)=> -74, chr(101)=> -55, chr(105)=> -18, chr(111)=> -55, chr(112)=> -55, chr(113)=> -55, chr(117)=> -37, chr(118)=> -37, ), chr(102)=> array ( chr(146)=> 37, ), chr(114)=> array ( chr(44)=> -55, chr(46)=> -37, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(119)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(121)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(145)=> array ( chr(145)=> -37, ), chr(146)=> array ( chr(115)=> -18, chr(146)=> -37, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
|
||||
','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
|
||||
'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
|
||||
'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
|
||||
'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
|
||||
chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
|
||||
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
|
||||
chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
|
||||
chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
|
||||
chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
|
||||
chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
|
||||
|
||||
//$desc=array('FontBBox'=>'[-180 -293 1090 1010]');
|
||||
$desc=array('Flags'=>4,'FontBBox'=>'[-180 -293 1090 1010]','ItalicAngle'=>0,'Ascent'=>1010,'Descent'=>-293,'Leading'=>0,'CapHeight'=>1010,'StemV'=>85,'StemH'=>92,'AvgWidth'=>587,'MaxWidth'=>1042,'MissingWidth'=>587);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
|
||||
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
|
||||
'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
|
||||
'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
|
||||
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||
chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
|
||||
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
|
||||
|
||||
//$desc=array('Ascent'=>683,'Descent'=>-217,'CapHeight'=>662,'FontBBox'=>'[-168 -218 1000 898]');
|
||||
$desc=array('Flags'=>32,'FontBBox'=>'[-168 -218 1000 898]','ItalicAngle'=>0,'Ascent'=>898,'Descent'=>-218,'Leading'=>0,'CapHeight'=>662,'XHeight'=>450,'StemV'=>84,'StemH'=>28,'AvgWidth'=>495,'MaxWidth'=>1000,'MissingWidth'=>495);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -37, ), chr(65)=> array ( chr(84)=> -110, chr(86)=> -128, chr(87)=> -80, chr(89)=> -91, chr(118)=> -74, chr(119)=> -91, chr(121)=> -91, chr(146)=> -110, ), chr(70)=> array ( chr(44)=> -80, chr(46)=> -80, chr(65)=> -74, ), chr(76)=> array ( chr(84)=> -91, chr(86)=> -91, chr(87)=> -74, chr(89)=> -100, chr(121)=> -55, chr(146)=> -91, ), chr(80)=> array ( chr(44)=> -110, chr(46)=> -110, chr(65)=> -91, ), chr(82)=> array ( chr(84)=> -60, chr(86)=> -80, chr(87)=> -55, chr(89)=> -55, chr(121)=> -40, ), chr(84)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -49, chr(65)=> -80, chr(79)=> -18, chr(97)=> -69, chr(99)=> -69, chr(101)=> -69, chr(105)=> -35, chr(111)=> -69, chr(114)=> -35, chr(115)=> -69, chr(117)=> -35, chr(119)=> -69, chr(121)=> -69, ), chr(86)=> array ( chr(44)=> -128, chr(46)=> -128, chr(58)=> -74, chr(65)=> -128, chr(97)=> -110, chr(101)=> -110, chr(105)=> -60, chr(111)=> -128, chr(114)=> -60, chr(117)=> -60, chr(121)=> -110, ), chr(87)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -37, chr(65)=> -110, chr(97)=> -80, chr(101)=> -80, chr(105)=> -40, chr(111)=> -80, chr(114)=> -40, chr(117)=> -40, chr(121)=> -60, ), chr(89)=> array ( chr(44)=> -128, chr(46)=> -128, chr(58)=> -91, chr(65)=> -110, chr(97)=> -100, chr(101)=> -100, chr(105)=> -55, chr(111)=> -100, chr(112)=> -91, chr(113)=> -110, chr(117)=> -110, chr(118)=> -100, ), chr(102)=> array ( chr(102)=> -18, chr(146)=> 55, ), chr(114)=> array ( chr(44)=> -40, chr(46)=> -55, chr(103)=> -18, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -64, chr(46)=> -64, ), chr(119)=> array ( chr(44)=> -64, chr(46)=> -64, ), chr(121)=> array ( chr(44)=> -64, chr(46)=> -64, ), chr(145)=> array ( chr(145)=> -74, ), chr(146)=> array ( chr(115)=> -55, chr(116)=> -18, chr(146)=> -74, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
|
||||
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
|
||||
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
|
||||
'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
|
||||
'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||
|
||||
//$desc=array('Ascent'=>683,'Descent'=>-217,'CapHeight'=>676,'FontBBox'=>'[-168 -218 1000 935]');
|
||||
$desc=array('Flags'=>32,'FontBBox'=>'[-168 -218 1000 935]','ItalicAngle'=>0,'Ascent'=>935,'Descent'=>-218,'Leading'=>0,'CapHeight'=>676,'XHeight'=>461,'StemV'=>139,'StemH'=>44,'AvgWidth'=>516,'MaxWidth'=>1000,'MissingWidth'=>516);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -55, ), chr(65)=> array ( chr(84)=> -74, chr(86)=> -128, chr(87)=> -110, chr(89)=> -91, chr(118)=> -74, chr(119)=> -74, chr(121)=> -74, chr(146)=> -74, ), chr(70)=> array ( chr(44)=> -91, chr(46)=> -91, chr(65)=> -74, ), chr(76)=> array ( chr(84)=> -91, chr(86)=> -91, chr(87)=> -91, chr(89)=> -91, chr(121)=> -55, chr(146)=> -91, ), chr(80)=> array ( chr(44)=> -91, chr(46)=> -91, chr(65)=> -74, ), chr(82)=> array ( chr(84)=> -35, chr(86)=> -35, chr(87)=> -35, chr(89)=> -35, chr(121)=> -35, ), chr(84)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -74, chr(65)=> -74, chr(79)=> -18, chr(97)=> -91, chr(99)=> -91, chr(101)=> -91, chr(105)=> -18, chr(111)=> -91, chr(114)=> -74, chr(115)=> -91, chr(117)=> -91, chr(119)=> -74, chr(121)=> -74, ), chr(86)=> array ( chr(44)=> -128, chr(46)=> -128, chr(58)=> -91, chr(65)=> -128, chr(79)=> -20, chr(97)=> -91, chr(101)=> -91, chr(105)=> -37, chr(111)=> -91, chr(114)=> -74, chr(117)=> -91, chr(121)=> -91, ), chr(87)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -55, chr(65)=> -110, chr(97)=> -55, chr(101)=> -55, chr(105)=> -18, chr(111)=> -55, chr(114)=> -18, chr(117)=> -18, chr(121)=> -37, ), chr(89)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -91, chr(65)=> -91, chr(97)=> -110, chr(101)=> -110, chr(105)=> -37, chr(111)=> -110, chr(112)=> -91, chr(113)=> -110, chr(117)=> -91, chr(118)=> -110, ), chr(102)=> array ( chr(102)=> 0, chr(146)=> 55, ), chr(114)=> array ( chr(44)=> -91, chr(46)=> -91, chr(99)=> -18, chr(101)=> -18, chr(104)=> 0, chr(111)=> -18, chr(113)=> -18, chr(116)=> 0, chr(119)=> 0, chr(120)=> 0, chr(121)=> 0, chr(122)=> 0, chr(146)=> 18, ), chr(118)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(119)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(121)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(145)=> array ( chr(145)=> -74, ), chr(146)=> array ( chr(115)=> -37, chr(146)=> -74, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
|
||||
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
|
||||
'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
|
||||
'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
|
||||
'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
||||
chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
||||
|
||||
//$desc=array('Ascent'=>683,'Descent'=>-217,'CapHeight'=>669,'FontBBox'=>'[-200 -218 996 921]');
|
||||
$desc=array('Flags'=>96,'FontBBox'=>'[-200 -218 996 921]','ItalicAngle'=>-15,'Ascent'=>921,'Descent'=>-218,'Leading'=>0,'CapHeight'=>669,'XHeight'=>462,'StemV'=>121,'StemH'=>42,'AvgWidth'=>501,'MaxWidth'=>1000,'MissingWidth'=>501);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -55, ), chr(65)=> array ( chr(84)=> -55, chr(86)=> -74, chr(87)=> -91, chr(89)=> -55, chr(118)=> -74, chr(119)=> -74, chr(121)=> -74, chr(146)=> -74, ), chr(70)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -91, ), chr(76)=> array ( chr(84)=> -18, chr(86)=> -37, chr(87)=> -37, chr(89)=> -37, chr(121)=> -37, chr(146)=> -55, ), chr(80)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -74, ), chr(82)=> array ( chr(86)=> -18, chr(87)=> -18, chr(89)=> -18, chr(121)=> -18, ), chr(84)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -74, chr(65)=> -55, chr(79)=> -18, chr(97)=> -91, chr(99)=> -91, chr(101)=> -91, chr(105)=> -37, chr(111)=> -91, chr(114)=> -37, chr(115)=> -91, chr(117)=> -37, chr(119)=> -37, chr(121)=> -37, ), chr(86)=> array ( chr(44)=> -128, chr(46)=> -128, chr(58)=> -74, chr(65)=> -74, chr(97)=> -110, chr(101)=> -110, chr(105)=> -55, chr(111)=> -110, chr(114)=> -55, chr(117)=> -55, chr(121)=> -74, ), chr(87)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -55, chr(65)=> -74, chr(97)=> -74, chr(101)=> -74, chr(105)=> -37, chr(111)=> -74, chr(114)=> -74, chr(117)=> -55, chr(121)=> -55, ), chr(89)=> array ( chr(44)=> -91, chr(46)=> -74, chr(58)=> -91, chr(65)=> -74, chr(97)=> -91, chr(101)=> -110, chr(105)=> -55, chr(111)=> -110, chr(112)=> -74, chr(113)=> -110, chr(117)=> -91, chr(118)=> -91, ), chr(102)=> array ( chr(102)=> -18, chr(146)=> 55, ), chr(114)=> array ( chr(44)=> -55, chr(46)=> -55, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -37, chr(46)=> -37, ), chr(119)=> array ( chr(44)=> -37, chr(46)=> -37, ), chr(121)=> array ( chr(44)=> -37, chr(46)=> -37, ), chr(145)=> array ( chr(145)=> -74, ), chr(146)=> array ( chr(115)=> -74, chr(116)=> -37, chr(146)=> -74, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,
|
||||
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,
|
||||
'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,
|
||||
'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,
|
||||
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||
chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,
|
||||
chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,
|
||||
chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,
|
||||
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||
chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
||||
|
||||
//$desc=array('Ascent'=>683,'Descent'=>-217,'CapHeight'=>653,'FontBBox'=>'[-169 -217 1010 883]');
|
||||
$desc=array('Flags'=>96,'FontBBox'=>'[-169 -217 1010 883]','ItalicAngle'=>-15.5,'Ascent'=>883,'Descent'=>-217,'Leading'=>0,'CapHeight'=>653,'XHeight'=>441,'StemV'=>76,'StemH'=>32,'AvgWidth'=>491,'MaxWidth'=>1000,'MissingWidth'=>491);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
$kerninfo=array ( chr(49)=> array ( chr(49)=> -74, ), chr(65)=> array ( chr(84)=> -37, chr(86)=> -49, chr(87)=> -37, chr(89)=> -55, chr(118)=> -55, chr(119)=> -55, chr(121)=> -55, chr(146)=> -37, ), chr(70)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -128, ), chr(76)=> array ( chr(84)=> -20, chr(86)=> -37, chr(87)=> -37, chr(89)=> -20, chr(121)=> -29, chr(146)=> -37, ), chr(80)=> array ( chr(44)=> -128, chr(46)=> -128, chr(65)=> -128, ), chr(82)=> array ( chr(84)=> 0, chr(86)=> -18, chr(87)=> -18, chr(89)=> -18, chr(121)=> -18, ), chr(84)=> array ( chr(44)=> -74, chr(46)=> -74, chr(58)=> -55, chr(65)=> -74, chr(79)=> -18, chr(97)=> -91, chr(99)=> -91, chr(101)=> -91, chr(105)=> -55, chr(111)=> -91, chr(114)=> -55, chr(115)=> -91, chr(117)=> -55, chr(119)=> -74, chr(121)=> -74, ), chr(86)=> array ( chr(44)=> -128, chr(46)=> -128, chr(58)=> -64, chr(65)=> -74, chr(79)=> -29, chr(97)=> -110, chr(101)=> -110, chr(105)=> -74, chr(111)=> -110, chr(114)=> -74, chr(117)=> -74, chr(121)=> -91, ), chr(87)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -64, chr(65)=> -69, chr(97)=> -91, chr(101)=> -91, chr(105)=> -55, chr(111)=> -91, chr(114)=> -55, chr(117)=> -55, chr(121)=> -91, ), chr(89)=> array ( chr(44)=> -91, chr(46)=> -91, chr(58)=> -64, chr(65)=> -69, chr(97)=> -91, chr(101)=> -91, chr(105)=> -74, chr(111)=> -91, chr(112)=> -91, chr(113)=> -110, chr(117)=> -91, chr(118)=> -91, ), chr(102)=> array ( chr(146)=> 91, ), chr(114)=> array ( chr(44)=> -110, chr(46)=> -110, chr(99)=> -37, chr(100)=> -37, chr(101)=> -37, chr(103)=> -37, chr(104)=> -18, chr(111)=> -37, chr(113)=> -37, chr(114)=> 0, chr(116)=> 0, chr(117)=> 0, chr(118)=> 0, chr(119)=> 0, chr(120)=> 0, chr(121)=> 0, chr(146)=> 37, ), chr(118)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(119)=> array ( chr(44)=> -74, chr(46)=> -74, ), chr(121)=> array ( chr(44)=> -55, chr(46)=> -55, ), chr(145)=> array ( chr(145)=> -110, ), chr(146)=> array ( chr(115)=> -128, chr(116)=> -110, chr(146)=> -110, ), );
|
||||
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$cw=array(
|
||||
chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,
|
||||
chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,
|
||||
','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,
|
||||
'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776,
|
||||
'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873,
|
||||
'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317,
|
||||
chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
|
||||
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788,
|
||||
chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788,
|
||||
chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
|
||||
chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
|
||||
chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
|
||||
|
||||
//$desc=array('FontBBox'=>'[-1 -143 981 820]');
|
||||
$desc=array('Flags'=>4,'FontBBox'=>'[-1 -143 981 820]','ItalicAngle'=>0,'Ascent'=>820,'Descent'=>-143,'Leading'=>0,'CapHeight'=>820,'StemV'=>90,'StemH'=>28,'AvgWidth'=>746,'MaxWidth'=>1016,'MissingWidth'=>746);
|
||||
$up=-100;
|
||||
$ut=50;
|
||||
|
||||
|
||||
?>
|
||||
@ -1,83 +0,0 @@
|
||||
|
||||
|
||||
|
||||
/* LISTS */
|
||||
|
||||
/*
|
||||
A default margin-top/bottom for lists is NOT set in config.php - (standard browsers give outermost list a top and bottom margin).
|
||||
[mPDF default CSS set in config.php only works on basic elements, cannot do selectors such as "ol ol"]
|
||||
Need to add the following to do this, but also prevent margins in nested lists as per default HTML in most browsers:
|
||||
*/
|
||||
|
||||
ul, ol { margin-top: 0.83em; margin-bottom: 0.83em; }
|
||||
ul ul, ul ol, ol ul, ol ol { margin-top: 0; margin-bottom: 0; }
|
||||
|
||||
|
||||
|
||||
|
||||
/* INDEXES */
|
||||
div.mpdf_index_main {
|
||||
font-family: sans-serif;
|
||||
line-height: normal;
|
||||
}
|
||||
div.mpdf_index_entry {
|
||||
line-height: normal;
|
||||
text-indent: -1.5em;
|
||||
}
|
||||
div.mpdf_index_letter {
|
||||
font-family: sans-serif;
|
||||
font-size: 1.8em;
|
||||
font-weight: bold;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
page-break-after: avoid;
|
||||
margin-top: 0.3em;
|
||||
margin-collapse: collapse;
|
||||
}
|
||||
a.mpdf_index_link {
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* TABLE OF CONTENTS */
|
||||
div.mpdf_toc {
|
||||
font-family: sans-serif;
|
||||
line-height: normal;
|
||||
}
|
||||
a.mpdf_toc_a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
div.mpdf_toc_level_0 { /* Whole line level 0 */
|
||||
line-height: 1.5;
|
||||
margin-left: 0;
|
||||
padding-right: 0em; /* should match the outdent specified for ToC; 0 is default; suggested value 2em */
|
||||
}
|
||||
span.mpdf_toc_t_level_0 { /* Title level 0 - may be inside <a> */
|
||||
font-weight: bold;
|
||||
}
|
||||
span.mpdf_toc_p_level_0 { /* Page no. level 0 - may be inside <a> */
|
||||
}
|
||||
div.mpdf_toc_level_1 { /* Whole line level 1 */
|
||||
margin-left: 2em;
|
||||
text-indent: -2em;
|
||||
padding-right: 0em; /* should match the outdent specified for ToC; 0 is default; suggested value 2em */
|
||||
}
|
||||
span.mpdf_toc_t_level_1 { /* Title level 1 */
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
span.mpdf_toc_p_level_1 { /* Page no. level 1 - may be inside <a> */
|
||||
}
|
||||
div.mpdf_toc_level_2 { /* Whole line level 2 */
|
||||
margin-left: 4em;
|
||||
text-indent: -2em;
|
||||
padding-right: 0em; /* should match the outdent specified for ToC; 0 is default; suggested value 2em */
|
||||
}
|
||||
span.mpdf_toc_t_level_2 { /* Title level 2 */
|
||||
}
|
||||
span.mpdf_toc_p_level_2 { /* Page no. level 2 - may be inside <a> */
|
||||
}
|
||||
|
||||
@ -1,363 +0,0 @@
|
||||
<?php
|
||||
//
|
||||
// FPDI - Version 1.2
|
||||
//
|
||||
// Copyright 2004-2007 Setasign - Jan Slabon
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
|
||||
class fpdi_pdf_parser extends pdf_parser {
|
||||
|
||||
/**
|
||||
* Pages
|
||||
* Index beginns at 0
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
var $pages;
|
||||
|
||||
/**
|
||||
* Page count
|
||||
* @var integer
|
||||
*/
|
||||
var $page_count;
|
||||
|
||||
/**
|
||||
* actual page number
|
||||
* @var integer
|
||||
*/
|
||||
var $pageno;
|
||||
|
||||
|
||||
/**
|
||||
* FPDI Reference
|
||||
* @var object
|
||||
*/
|
||||
var $fpdi;
|
||||
|
||||
/**
|
||||
* Available BoxTypes
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
var $availableBoxes = array("/MediaBox","/CropBox","/BleedBox","/TrimBox","/ArtBox");
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $filename Source-Filename
|
||||
* @param object $fpdi Object of type fpdi
|
||||
*/
|
||||
function fpdi_pdf_parser($filename,&$fpdi) {
|
||||
$this->fpdi =& $fpdi;
|
||||
$this->filename = $filename;
|
||||
|
||||
parent::pdf_parser($filename);
|
||||
if ($this->success == false) { return false; }
|
||||
|
||||
// resolve Pages-Dictonary
|
||||
$pages = $this->pdf_resolve_object($this->c, $this->root[1][1]['/Pages']);
|
||||
if ($this->success == false) { return false; }
|
||||
|
||||
// Read pages
|
||||
$this->read_pages($this->c, $pages, $this->pages);
|
||||
if ($this->success == false) { return false; }
|
||||
|
||||
// count pages;
|
||||
$this->page_count = count($this->pages);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get pagecount from sourcefile
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
function getPageCount() {
|
||||
return $this->page_count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set pageno
|
||||
*
|
||||
* @param int $pageno Pagenumber to use
|
||||
*/
|
||||
function setPageno($pageno) {
|
||||
$pageno = ((int) $pageno) - 1;
|
||||
|
||||
if ($pageno < 0 || $pageno >= $this->getPageCount()) {
|
||||
$this->fpdi->error("Pagenumber is wrong!");
|
||||
}
|
||||
|
||||
$this->pageno = $pageno;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get page-resources from current page
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function getPageResources() {
|
||||
return $this->_getPageResources($this->pages[$this->pageno]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get page-resources from /Page
|
||||
*
|
||||
* @param array $obj Array of pdf-data
|
||||
*/
|
||||
function _getPageResources ($obj) { // $obj = /Page
|
||||
$obj = $this->pdf_resolve_object($this->c, $obj);
|
||||
|
||||
// If the current object has a resources
|
||||
// dictionary associated with it, we use
|
||||
// it. Otherwise, we move back to its
|
||||
// parent object.
|
||||
if (isset ($obj[1][1]['/Resources'])) {
|
||||
$res = $this->pdf_resolve_object($this->c, $obj[1][1]['/Resources']);
|
||||
if ($res[0] == PDF_TYPE_OBJECT)
|
||||
return $res[1];
|
||||
return $res;
|
||||
} else {
|
||||
if (!isset ($obj[1][1]['/Parent'])) {
|
||||
return false;
|
||||
} else {
|
||||
$res = $this->_getPageResources($obj[1][1]['/Parent']);
|
||||
if ($res[0] == PDF_TYPE_OBJECT)
|
||||
return $res[1];
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get content of current page
|
||||
*
|
||||
* If more /Contents is an array, the streams are concated
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function getContent() {
|
||||
$buffer = "";
|
||||
|
||||
if (isset($this->pages[$this->pageno][1][1]['/Contents'])) {
|
||||
$contents = $this->_getPageContent($this->pages[$this->pageno][1][1]['/Contents']);
|
||||
foreach($contents AS $tmp_content) {
|
||||
$buffer .= $this->_rebuildContentStream($tmp_content).' ';
|
||||
}
|
||||
}
|
||||
|
||||
return $buffer;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Resolve all content-objects
|
||||
*
|
||||
* @param array $content_ref
|
||||
* @return array
|
||||
*/
|
||||
function _getPageContent($content_ref) {
|
||||
$contents = array();
|
||||
|
||||
if ($content_ref[0] == PDF_TYPE_OBJREF) {
|
||||
$content = $this->pdf_resolve_object($this->c, $content_ref);
|
||||
if ($content[1][0] == PDF_TYPE_ARRAY) {
|
||||
$contents = $this->_getPageContent($content[1]);
|
||||
} else {
|
||||
$contents[] = $content;
|
||||
}
|
||||
} else if ($content_ref[0] == PDF_TYPE_ARRAY) {
|
||||
foreach ($content_ref[1] AS $tmp_content_ref) {
|
||||
$contents = array_merge($contents,$this->_getPageContent($tmp_content_ref));
|
||||
}
|
||||
}
|
||||
|
||||
return $contents;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Rebuild content-streams
|
||||
*
|
||||
* @param array $obj
|
||||
* @return string
|
||||
*/
|
||||
function _rebuildContentStream($obj) {
|
||||
$filters = array();
|
||||
|
||||
if (isset($obj[1][1]['/Filter'])) {
|
||||
$_filter = $obj[1][1]['/Filter'];
|
||||
|
||||
if ($_filter[0] == PDF_TYPE_TOKEN) {
|
||||
$filters[] = $_filter;
|
||||
} else if ($_filter[0] == PDF_TYPE_ARRAY) {
|
||||
$filters = $_filter[1];
|
||||
}
|
||||
}
|
||||
|
||||
$stream = $obj[2][1];
|
||||
|
||||
foreach ($filters AS $_filter) {
|
||||
switch ($_filter[1]) {
|
||||
case "/FlateDecode":
|
||||
if (function_exists('gzuncompress')) {
|
||||
$stream = (strlen($stream) > 0) ? @gzuncompress($stream) : '';
|
||||
} else {
|
||||
$this->fpdi->error(sprintf("To handle %s filter, please compile php with zlib support.",$_filter[1]));
|
||||
}
|
||||
if ($stream === false) {
|
||||
$this->fpdi->error("Error while decompressing stream.");
|
||||
}
|
||||
break;
|
||||
// mPDF 4.2.003
|
||||
case '/LZWDecode':
|
||||
include_once(_MPDF_PATH.'mpdfi/filters/FilterLZW.php');
|
||||
// mPDF 5.0 Removed pass by reference =&
|
||||
$decoder = new FilterLZW();
|
||||
$stream = $decoder->decode($stream);
|
||||
break;
|
||||
case '/ASCII85Decode':
|
||||
include_once(_MPDF_PATH.'mpdfi/filters/FilterASCII85.php');
|
||||
// mPDF 5.0 Removed pass by reference =&
|
||||
$decoder = new FilterASCII85();
|
||||
$stream = $decoder->decode($stream);
|
||||
break;
|
||||
case null:
|
||||
$stream = $stream;
|
||||
break;
|
||||
default:
|
||||
$this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
|
||||
}
|
||||
}
|
||||
|
||||
return $stream;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get a Box from a page
|
||||
* Arrayformat is same as used by fpdf_tpl
|
||||
*
|
||||
* @param array $page a /Page
|
||||
* @param string $box_index Type of Box @see $availableBoxes
|
||||
* @return array
|
||||
*/
|
||||
function getPageBox($page, $box_index) {
|
||||
$page = $this->pdf_resolve_object($this->c,$page);
|
||||
$box = null;
|
||||
if (isset($page[1][1][$box_index]))
|
||||
$box =& $page[1][1][$box_index];
|
||||
|
||||
if (!is_null($box) && $box[0] == PDF_TYPE_OBJREF) {
|
||||
$tmp_box = $this->pdf_resolve_object($this->c,$box);
|
||||
$box = $tmp_box[1];
|
||||
}
|
||||
|
||||
if (!is_null($box) && $box[0] == PDF_TYPE_ARRAY) {
|
||||
$b =& $box[1];
|
||||
return array("x" => $b[0][1]/_MPDFK,
|
||||
"y" => $b[1][1]/_MPDFK,
|
||||
"w" => abs($b[0][1]-$b[2][1])/_MPDFK,
|
||||
"h" => abs($b[1][1]-$b[3][1])/_MPDFK); // mPDF 5.3.90
|
||||
} else if (!isset ($page[1][1]['/Parent'])) {
|
||||
return false;
|
||||
} else {
|
||||
return $this->getPageBox($this->pdf_resolve_object($this->c, $page[1][1]['/Parent']), $box_index);
|
||||
}
|
||||
}
|
||||
|
||||
function getPageBoxes($pageno) {
|
||||
return $this->_getPageBoxes($this->pages[$pageno-1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all Boxes from /Page
|
||||
*
|
||||
* @param array a /Page
|
||||
* @return array
|
||||
*/
|
||||
function _getPageBoxes($page) {
|
||||
$boxes = array();
|
||||
|
||||
foreach($this->availableBoxes AS $box) {
|
||||
if ($_box = $this->getPageBox($page,$box)) {
|
||||
$boxes[$box] = $_box;
|
||||
}
|
||||
}
|
||||
|
||||
return $boxes;
|
||||
}
|
||||
|
||||
function getPageRotation($pageno) {
|
||||
return $this->_getPageRotation($this->pages[$pageno-1]);
|
||||
}
|
||||
|
||||
function _getPageRotation ($obj) { // $obj = /Page
|
||||
$obj = $this->pdf_resolve_object($this->c, $obj);
|
||||
if (isset ($obj[1][1]['/Rotate'])) {
|
||||
$res = $this->pdf_resolve_object($this->c, $obj[1][1]['/Rotate']);
|
||||
if ($res[0] == PDF_TYPE_OBJECT)
|
||||
return $res[1];
|
||||
return $res;
|
||||
} else {
|
||||
if (!isset ($obj[1][1]['/Parent'])) {
|
||||
return false;
|
||||
} else {
|
||||
$res = $this->_getPageRotation($obj[1][1]['/Parent']);
|
||||
if ($res[0] == PDF_TYPE_OBJECT)
|
||||
return $res[1];
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Read all /Page(es)
|
||||
*
|
||||
* @param object pdf_context
|
||||
* @param array /Pages
|
||||
* @param array the result-array
|
||||
*/
|
||||
function read_pages (&$c, &$pages, &$result) {
|
||||
// Get the kids dictionary
|
||||
$kids = $this->pdf_resolve_object ($c, $pages[1][1]['/Kids']);
|
||||
|
||||
if (!is_array($kids)) {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Cannot find /Kids in current /Page-Dictionary");
|
||||
return false;
|
||||
}
|
||||
foreach ($kids[1] as $v) {
|
||||
$pg = $this->pdf_resolve_object ($c, $v);
|
||||
if ($pg[1][1]['/Type'][1] === '/Pages') {
|
||||
// If one of the kids is an embedded
|
||||
// /Pages array, resolve it as well.
|
||||
$this->read_pages ($c, $pg, $result);
|
||||
} else {
|
||||
$result[] = $pg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,78 +0,0 @@
|
||||
<?php
|
||||
//
|
||||
// FPDI - Version 1.2
|
||||
//
|
||||
// Copyright 2004-2007 Setasign - Jan Slabon
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
class pdf_context {
|
||||
|
||||
var $file;
|
||||
var $buffer;
|
||||
var $offset;
|
||||
var $length;
|
||||
|
||||
var $stack;
|
||||
|
||||
// Constructor
|
||||
|
||||
function pdf_context($f) {
|
||||
$this->file = $f;
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
// Optionally move the file
|
||||
// pointer to a new location
|
||||
// and reset the buffered data
|
||||
|
||||
function reset($pos = null, $l = 100) {
|
||||
if (!is_null ($pos)) {
|
||||
fseek ($this->file, $pos);
|
||||
}
|
||||
|
||||
$this->buffer = $l > 0 ? fread($this->file, $l) : '';
|
||||
$this->offset = 0;
|
||||
$this->length = strlen($this->buffer);
|
||||
$this->stack = array();
|
||||
}
|
||||
|
||||
// Make sure that there is at least one
|
||||
// character beyond the current offset in
|
||||
// the buffer to prevent the tokenizer
|
||||
// from attempting to access data that does
|
||||
// not exist
|
||||
|
||||
function ensure_content() {
|
||||
if ($this->offset >= $this->length - 1) {
|
||||
return $this->increase_length();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Forcefully read more data into the buffer
|
||||
|
||||
function increase_length($l=100) {
|
||||
if (feof($this->file)) {
|
||||
return false;
|
||||
} else {
|
||||
$this->buffer .= fread($this->file, $l);
|
||||
$this->length = strlen($this->buffer);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -1,690 +0,0 @@
|
||||
<?php
|
||||
//
|
||||
// FPDI - Version 1.2
|
||||
//
|
||||
// Copyright 2004-2007 Setasign - Jan Slabon
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
if (!defined ('PDF_TYPE_NULL'))
|
||||
define ('PDF_TYPE_NULL', 0);
|
||||
if (!defined ('PDF_TYPE_NUMERIC'))
|
||||
define ('PDF_TYPE_NUMERIC', 1);
|
||||
if (!defined ('PDF_TYPE_TOKEN'))
|
||||
define ('PDF_TYPE_TOKEN', 2);
|
||||
if (!defined ('PDF_TYPE_HEX'))
|
||||
define ('PDF_TYPE_HEX', 3);
|
||||
if (!defined ('PDF_TYPE_STRING'))
|
||||
define ('PDF_TYPE_STRING', 4);
|
||||
if (!defined ('PDF_TYPE_DICTIONARY'))
|
||||
define ('PDF_TYPE_DICTIONARY', 5);
|
||||
if (!defined ('PDF_TYPE_ARRAY'))
|
||||
define ('PDF_TYPE_ARRAY', 6);
|
||||
if (!defined ('PDF_TYPE_OBJDEC'))
|
||||
define ('PDF_TYPE_OBJDEC', 7);
|
||||
if (!defined ('PDF_TYPE_OBJREF'))
|
||||
define ('PDF_TYPE_OBJREF', 8);
|
||||
if (!defined ('PDF_TYPE_OBJECT'))
|
||||
define ('PDF_TYPE_OBJECT', 9);
|
||||
if (!defined ('PDF_TYPE_STREAM'))
|
||||
define ('PDF_TYPE_STREAM', 10);
|
||||
|
||||
|
||||
class pdf_parser {
|
||||
|
||||
/**
|
||||
* Filename
|
||||
* @var string
|
||||
*/
|
||||
var $filename;
|
||||
|
||||
/**
|
||||
* File resource
|
||||
* @var resource
|
||||
*/
|
||||
var $f;
|
||||
|
||||
/**
|
||||
* PDF Context
|
||||
* @var object pdf_context-Instance
|
||||
*/
|
||||
var $c;
|
||||
|
||||
/**
|
||||
* xref-Data
|
||||
* @var array
|
||||
*/
|
||||
var $xref;
|
||||
|
||||
/**
|
||||
* root-Object
|
||||
* @var array
|
||||
*/
|
||||
var $root;
|
||||
|
||||
// mPDF 4.0 Added flag to show success on loading file
|
||||
var $success;
|
||||
var $errormsg;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $filename Source-Filename
|
||||
*/
|
||||
function pdf_parser($filename) {
|
||||
$this->filename = $filename;
|
||||
// mPDF 4.0
|
||||
$this->success = true;
|
||||
|
||||
$this->f = @fopen($this->filename, "rb");
|
||||
|
||||
if (!$this->f) {
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Cannot open %s !", $filename);
|
||||
return false;
|
||||
}
|
||||
// mPDF 5.0 Removed pass by reference =&
|
||||
$this->c = new pdf_context($this->f);
|
||||
// Read xref-Data
|
||||
$offset = $this->pdf_find_xref();
|
||||
if ($offset===false) {
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Cannot open %s !", $filename);
|
||||
return false;
|
||||
}
|
||||
$this->pdf_read_xref($this->xref, $offset);
|
||||
if ($this->success == false) { return false; }
|
||||
|
||||
// Check for Encryption
|
||||
$this->getEncryption();
|
||||
if ($this->success == false) { return false; }
|
||||
|
||||
// Read root
|
||||
$this->pdf_read_root();
|
||||
if ($this->success == false) { return false; }
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the opened file
|
||||
*/
|
||||
function closeFile() {
|
||||
if (isset($this->f)) {
|
||||
fclose($this->f);
|
||||
unset($this->f);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Print Error and die
|
||||
*
|
||||
* @param string $msg Error-Message
|
||||
*/
|
||||
function error($msg) {
|
||||
die("<b>PDF-Parser Error:</b> ".$msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check Trailer for Encryption
|
||||
*/
|
||||
function getEncryption() {
|
||||
if (isset($this->xref['trailer'][1]['/Encrypt'])) {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("File is encrypted!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Find/Return /Root
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function pdf_find_root() {
|
||||
if ($this->xref['trailer'][1]['/Root'][0] != PDF_TYPE_OBJREF) {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Wrong Type of Root-Element! Must be an indirect reference");
|
||||
return false;
|
||||
}
|
||||
return $this->xref['trailer'][1]['/Root'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Read the /Root
|
||||
*/
|
||||
function pdf_read_root() {
|
||||
// read root
|
||||
$root = $this->pdf_find_root();
|
||||
if ($root ===false) {
|
||||
$this->success = false;
|
||||
return false;
|
||||
}
|
||||
$this->root = $this->pdf_resolve_object($this->c, $root);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the xref-Table
|
||||
*/
|
||||
function pdf_find_xref() {
|
||||
fseek ($this->f, -min(filesize($this->filename),1500), SEEK_END);
|
||||
$data = fread($this->f, 1500);
|
||||
|
||||
$pos = strlen($data) - strpos(strrev($data), strrev('startxref'));
|
||||
$data = substr($data, $pos);
|
||||
|
||||
if (!preg_match('/\s*(\d+).*$/s', $data, $matches)) {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Unable to find pointer to xref table");
|
||||
return false;
|
||||
}
|
||||
|
||||
return (int) $matches[1];
|
||||
}
|
||||
|
||||
/**
|
||||
* Read xref-table
|
||||
*
|
||||
* @param array $result Array of xref-table
|
||||
* @param integer $offset of xref-table
|
||||
* @param integer $start start-position in xref-table
|
||||
* @param integer $end end-position in xref-table
|
||||
*/
|
||||
function pdf_read_xref(&$result, $offset, $start = null, $end = null) {
|
||||
if (is_null ($start) || is_null ($end)) {
|
||||
fseek($this->f, $o_pos = $offset);
|
||||
$data = trim(fgets($this->f,1024));
|
||||
|
||||
if (strlen($data) == 0)
|
||||
$data = trim(fgets($this->f,1024));
|
||||
|
||||
if ($data !== 'xref') {
|
||||
fseek($this->f, $o_pos);
|
||||
$data = trim(_fgets($this->f, true));
|
||||
if ($data !== 'xref') {
|
||||
if (preg_match('/(.*xref)(.*)/m', $data, $m)) { // xref 0 128 - in one line
|
||||
fseek($this->f, $o_pos+strlen($m[1]));
|
||||
} elseif (preg_match('/(x|r|e|f)+/', $data, $m)) { // correct invalid xref-pointer
|
||||
$tmpOffset = $offset-4+strlen($m[0]);
|
||||
$this->pdf_read_xref($result, $tmpOffset, $start, $end);
|
||||
return;
|
||||
} else {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings'");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$o_pos = ftell($this->f);
|
||||
$data = explode(' ', trim(fgets($this->f,1024)));
|
||||
if (count($data) != 2) {
|
||||
fseek($this->f, $o_pos);
|
||||
$data = explode(' ', trim(_fgets($this->f, true)));
|
||||
|
||||
if (count($data) != 2) {
|
||||
if (count($data) > 2) { // no lineending
|
||||
$n_pos = $o_pos+strlen($data[0])+strlen($data[1])+2;
|
||||
fseek($this->f, $n_pos);
|
||||
} else {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Unexpected header in xref table");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
$start = $data[0];
|
||||
$end = $start + $data[1];
|
||||
}
|
||||
|
||||
if (!isset($result['xref_location'])) {
|
||||
$result['xref_location'] = $offset;
|
||||
}
|
||||
|
||||
if (!isset($result['max_object']) || $end > $result['max_object']) {
|
||||
$result['max_object'] = $end;
|
||||
}
|
||||
|
||||
for (; $start < $end; $start++) {
|
||||
$data = ltrim(fread($this->f, 20)); // Spezifications says: 20 bytes including newlines
|
||||
$offset = substr($data, 0, 10);
|
||||
$generation = substr($data, 11, 5);
|
||||
|
||||
if (!isset ($result['xref'][$start][(int) $generation])) {
|
||||
$result['xref'][$start][(int) $generation] = (int) $offset;
|
||||
}
|
||||
}
|
||||
|
||||
$o_pos = ftell($this->f);
|
||||
$data = fgets($this->f,1024);
|
||||
if (strlen(trim($data)) == 0)
|
||||
$data = fgets($this->f, 1024);
|
||||
|
||||
if (preg_match("/trailer/",$data)) {
|
||||
if (preg_match("/(.*trailer[ \n\r]*)/",$data,$m)) {
|
||||
fseek($this->f, $o_pos+strlen($m[1]));
|
||||
}
|
||||
|
||||
// mPDF 5.0 Removed pass by reference =&
|
||||
$c = new pdf_context($this->f);
|
||||
$trailer = $this->pdf_read_value($c);
|
||||
|
||||
if (isset($trailer[1]['/Prev'])) {
|
||||
$this->pdf_read_xref($result, $trailer[1]['/Prev'][1]);
|
||||
$result['trailer'][1] = array_merge($result['trailer'][1], $trailer[1]);
|
||||
} else {
|
||||
$result['trailer'] = $trailer;
|
||||
}
|
||||
} else {
|
||||
$data = explode(' ', trim($data));
|
||||
|
||||
if (count($data) != 2) {
|
||||
fseek($this->f, $o_pos);
|
||||
$data = explode(' ', trim (_fgets ($this->f, true)));
|
||||
|
||||
if (count($data) != 2) {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Unexpected data in xref table");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->pdf_read_xref($result, null, (int) $data[0], (int) $data[0] + (int) $data[1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reads an Value
|
||||
*
|
||||
* @param object $c pdf_context
|
||||
* @param string $token a Token
|
||||
* @return mixed
|
||||
*/
|
||||
function pdf_read_value(&$c, $token = null) {
|
||||
if (is_null($token)) {
|
||||
$token = $this->pdf_read_token($c);
|
||||
}
|
||||
|
||||
if ($token === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch ($token) {
|
||||
case '<':
|
||||
// This is a hex string.
|
||||
// Read the value, then the terminator
|
||||
|
||||
$pos = $c->offset;
|
||||
|
||||
while(1) {
|
||||
|
||||
$match = strpos ($c->buffer, '>', $pos);
|
||||
|
||||
// If you can't find it, try
|
||||
// reading more data from the stream
|
||||
|
||||
if ($match === false) {
|
||||
if (!$c->increase_length()) {
|
||||
return false;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$result = substr ($c->buffer, $c->offset, $match - $c->offset);
|
||||
$c->offset = $match+1;
|
||||
|
||||
return array (PDF_TYPE_HEX, $result);
|
||||
}
|
||||
|
||||
break;
|
||||
case '<<':
|
||||
// This is a dictionary.
|
||||
|
||||
$result = array();
|
||||
|
||||
// Recurse into this function until we reach
|
||||
// the end of the dictionary.
|
||||
while (($key = $this->pdf_read_token($c)) !== '>>') {
|
||||
if ($key === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (($value = $this->pdf_read_value($c)) === false) {
|
||||
return false;
|
||||
}
|
||||
$result[$key] = $value;
|
||||
}
|
||||
|
||||
return array (PDF_TYPE_DICTIONARY, $result);
|
||||
|
||||
case '[':
|
||||
// This is an array.
|
||||
|
||||
$result = array();
|
||||
|
||||
// Recurse into this function until we reach
|
||||
// the end of the array.
|
||||
while (($token = $this->pdf_read_token($c)) !== ']') {
|
||||
if ($token === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (($value = $this->pdf_read_value($c, $token)) === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$result[] = $value;
|
||||
}
|
||||
|
||||
return array (PDF_TYPE_ARRAY, $result);
|
||||
|
||||
case '(' :
|
||||
// This is a string
|
||||
|
||||
$pos = $c->offset;
|
||||
|
||||
while(1) {
|
||||
|
||||
// Start by finding the next closed
|
||||
// parenthesis
|
||||
|
||||
$match = strpos ($c->buffer, ')', $pos);
|
||||
|
||||
// If you can't find it, try
|
||||
// reading more data from the stream
|
||||
|
||||
if ($match === false) {
|
||||
if (!$c->increase_length()) {
|
||||
return false;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure that there is no backslash
|
||||
// before the parenthesis. If there is,
|
||||
// move on. Otherwise, return the string.
|
||||
$esc = preg_match('/([\\\\]+)$/', $tmpresult = substr($c->buffer, $c->offset, $match - $c->offset), $m);
|
||||
|
||||
if ($esc === 0 || strlen($m[1]) % 2 == 0) {
|
||||
$result = $tmpresult;
|
||||
$c->offset = $match + 1;
|
||||
return array (PDF_TYPE_STRING, $result);
|
||||
} else {
|
||||
$pos = $match + 1;
|
||||
|
||||
if ($pos > $c->offset + $c->length) {
|
||||
$c->increase_length();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case "stream":
|
||||
$o_pos = ftell($c->file)-strlen($c->buffer);
|
||||
$o_offset = $c->offset;
|
||||
|
||||
$c->reset($startpos = $o_pos + $o_offset);
|
||||
|
||||
$e = 0; // ensure line breaks in front of the stream
|
||||
if ($c->buffer[0] == chr(10) || $c->buffer[0] == chr(13))
|
||||
$e++;
|
||||
if ($c->buffer[1] == chr(10) && $c->buffer[0] != chr(10))
|
||||
$e++;
|
||||
|
||||
if ($this->actual_obj[1][1]['/Length'][0] == PDF_TYPE_OBJREF) {
|
||||
// mPDF 5.0 Removed pass by reference =&
|
||||
$tmp_c = new pdf_context($this->f);
|
||||
$tmp_length = $this->pdf_resolve_object($tmp_c,$this->actual_obj[1][1]['/Length']);
|
||||
$length = $tmp_length[1][1];
|
||||
} else {
|
||||
$length = $this->actual_obj[1][1]['/Length'][1];
|
||||
}
|
||||
|
||||
if ($length > 0) {
|
||||
$c->reset($startpos+$e,$length);
|
||||
$v = $c->buffer;
|
||||
} else {
|
||||
$v = '';
|
||||
}
|
||||
$c->reset($startpos+$e+$length+9); // 9 = strlen("endstream")
|
||||
|
||||
return array(PDF_TYPE_STREAM, $v);
|
||||
|
||||
default :
|
||||
if (is_numeric ($token)) {
|
||||
// A numeric token. Make sure that
|
||||
// it is not part of something else.
|
||||
if (($tok2 = $this->pdf_read_token ($c)) !== false) {
|
||||
if (is_numeric ($tok2)) {
|
||||
|
||||
// Two numeric tokens in a row.
|
||||
// In this case, we're probably in
|
||||
// front of either an object reference
|
||||
// or an object specification.
|
||||
// Determine the case and return the data
|
||||
if (($tok3 = $this->pdf_read_token ($c)) !== false) {
|
||||
switch ($tok3) {
|
||||
case 'obj' :
|
||||
return array (PDF_TYPE_OBJDEC, (int) $token, (int) $tok2);
|
||||
case 'R' :
|
||||
return array (PDF_TYPE_OBJREF, (int) $token, (int) $tok2);
|
||||
}
|
||||
// If we get to this point, that numeric value up
|
||||
// there was just a numeric value. Push the extra
|
||||
// tokens back into the stack and return the value.
|
||||
array_push ($c->stack, $tok3);
|
||||
}
|
||||
}
|
||||
|
||||
array_push ($c->stack, $tok2);
|
||||
}
|
||||
|
||||
return array (PDF_TYPE_NUMERIC, $token);
|
||||
} else {
|
||||
|
||||
// Just a token. Return it.
|
||||
return array (PDF_TYPE_TOKEN, $token);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve an object
|
||||
*
|
||||
* @param object $c pdf_context
|
||||
* @param array $obj_spec The object-data
|
||||
* @param boolean $encapsulate Must set to true, cause the parsing and fpdi use this method only without this para
|
||||
*/
|
||||
function pdf_resolve_object(&$c, $obj_spec, $encapsulate = true) {
|
||||
// Exit if we get invalid data
|
||||
if (!is_array($obj_spec)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($obj_spec[0] == PDF_TYPE_OBJREF) {
|
||||
|
||||
// This is a reference, resolve it
|
||||
if (isset($this->xref['xref'][$obj_spec[1]][$obj_spec[2]])) {
|
||||
|
||||
// Save current file position
|
||||
// This is needed if you want to resolve
|
||||
// references while you're reading another object
|
||||
// (e.g.: if you need to determine the length
|
||||
// of a stream)
|
||||
|
||||
$old_pos = ftell($c->file);
|
||||
|
||||
// Reposition the file pointer and
|
||||
// load the object header.
|
||||
|
||||
$c->reset($this->xref['xref'][$obj_spec[1]][$obj_spec[2]]);
|
||||
|
||||
$header = $this->pdf_read_value($c,null,true);
|
||||
|
||||
if ($header[0] != PDF_TYPE_OBJDEC || $header[1] != $obj_spec[1] || $header[2] != $obj_spec[2]) {
|
||||
// mPDF 4.0
|
||||
$this->success = false;
|
||||
$this->errormsg = sprintf("Unable to find object ({$obj_spec[1]}, {$obj_spec[2]}) at expected location");
|
||||
return false;
|
||||
}
|
||||
|
||||
// If we're being asked to store all the information
|
||||
// about the object, we add the object ID and generation
|
||||
// number for later use
|
||||
$this->actual_obj =& $result;
|
||||
if ($encapsulate) {
|
||||
$result = array (
|
||||
PDF_TYPE_OBJECT,
|
||||
'obj' => $obj_spec[1],
|
||||
'gen' => $obj_spec[2]
|
||||
);
|
||||
} else {
|
||||
$result = array();
|
||||
}
|
||||
|
||||
// Now simply read the object data until
|
||||
// we encounter an end-of-object marker
|
||||
while(1) {
|
||||
$value = $this->pdf_read_value($c);
|
||||
if ($value === false || count($result) > 4) {
|
||||
// in this case the parser coudn't find an endobj so we break here
|
||||
break;
|
||||
}
|
||||
|
||||
if ($value[0] == PDF_TYPE_TOKEN && $value[1] === 'endobj') {
|
||||
break;
|
||||
}
|
||||
|
||||
$result[] = $value;
|
||||
}
|
||||
|
||||
$c->reset($old_pos);
|
||||
|
||||
if (isset($result[2][0]) && $result[2][0] == PDF_TYPE_STREAM) {
|
||||
$result[0] = PDF_TYPE_STREAM;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
} else {
|
||||
return $obj_spec;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reads a token from the file
|
||||
*
|
||||
* @param object $c pdf_context
|
||||
* @return mixed
|
||||
*/
|
||||
function pdf_read_token(&$c)
|
||||
{
|
||||
// If there is a token available
|
||||
// on the stack, pop it out and
|
||||
// return it.
|
||||
|
||||
if (count($c->stack)) {
|
||||
return array_pop($c->stack);
|
||||
}
|
||||
|
||||
// Strip away any whitespace
|
||||
|
||||
do {
|
||||
if (!$c->ensure_content()) {
|
||||
return false;
|
||||
}
|
||||
$c->offset += _strspn($c->buffer, " \n\r\t", $c->offset);
|
||||
} while ($c->offset >= $c->length - 1);
|
||||
|
||||
// Get the first character in the stream
|
||||
|
||||
$char = $c->buffer[$c->offset++];
|
||||
|
||||
switch ($char) {
|
||||
|
||||
case '[' :
|
||||
case ']' :
|
||||
case '(' :
|
||||
case ')' :
|
||||
|
||||
// This is either an array or literal string
|
||||
// delimiter, Return it
|
||||
|
||||
return $char;
|
||||
|
||||
case '<' :
|
||||
case '>' :
|
||||
|
||||
// This could either be a hex string or
|
||||
// dictionary delimiter. Determine the
|
||||
// appropriate case and return the token
|
||||
|
||||
if ($c->buffer[$c->offset] == $char) {
|
||||
if (!$c->ensure_content()) {
|
||||
return false;
|
||||
}
|
||||
$c->offset++;
|
||||
return $char . $char;
|
||||
} else {
|
||||
return $char;
|
||||
}
|
||||
|
||||
default :
|
||||
|
||||
// This is "another" type of token (probably
|
||||
// a dictionary entry or a numeric value)
|
||||
// Find the end and return it.
|
||||
|
||||
if (!$c->ensure_content()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
while(1) {
|
||||
|
||||
// Determine the length of the token
|
||||
|
||||
$pos = _strcspn($c->buffer, " []<>()\r\n\t/", $c->offset);
|
||||
if ($c->offset + $pos <= $c->length - 1) {
|
||||
break;
|
||||
} else {
|
||||
// If the script reaches this point,
|
||||
// the token may span beyond the end
|
||||
// of the current buffer. Therefore,
|
||||
// we increase the size of the buffer
|
||||
// and try again--just to be safe.
|
||||
|
||||
$c->increase_length();
|
||||
}
|
||||
}
|
||||
|
||||
$result = substr($c->buffer, $c->offset - 1, $pos + 1);
|
||||
|
||||
$c->offset += $pos;
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,66 +0,0 @@
|
||||
body {
|
||||
margin : 0 auto;
|
||||
width:100%;
|
||||
font-family: "Verdana";
|
||||
color: #40454b;
|
||||
font-size: 12px;
|
||||
text-align:center;
|
||||
}
|
||||
.main {
|
||||
width:540px;
|
||||
margin: 0 auto;
|
||||
text-align:left;
|
||||
}
|
||||
.heading {
|
||||
font-size:14px;
|
||||
font-weight:bold;
|
||||
color:#CC0000;
|
||||
padding:5px;
|
||||
margin-left:10px;
|
||||
border-bottom:solid;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-color:#333333;
|
||||
/* Use this to suppress the horizontal line under the heading */
|
||||
/* border-bottom: 0px solid #000000; */
|
||||
}
|
||||
table {
|
||||
font-family: "Verdana";
|
||||
color: #40454b;
|
||||
font-size: 12px;
|
||||
}
|
||||
.demo {
|
||||
margin : 0 auto;
|
||||
width:100%;
|
||||
margin:20px;
|
||||
/* Use this to suppress all the bars and text */
|
||||
/* display: none; */
|
||||
}
|
||||
td {
|
||||
vertical-align: top;
|
||||
padding: 0 0.5em 0 0;
|
||||
}
|
||||
.code {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 10px;
|
||||
}
|
||||
.code2 {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 11px; font-weight: bold; color: red;
|
||||
}
|
||||
.barheading {
|
||||
color:#006600;
|
||||
font-weight:bold;
|
||||
}
|
||||
.progressBar {
|
||||
border: 1px solid #000000;
|
||||
background-color: #EEEEEE;
|
||||
width: 200px;
|
||||
font-size: 6px;
|
||||
}
|
||||
.innerBar {
|
||||
background-color:#00CC00;
|
||||
width: 0%;
|
||||
}
|
||||
#box3 {
|
||||
font-weight: bold;
|
||||
}
|
||||
1109
modules/bootstrap/css/bootstrap-responsive.css
vendored
6158
modules/bootstrap/css/bootstrap.css
vendored
9
modules/bootstrap/css/bootstrap.min.css
vendored
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 12 KiB |
2276
modules/bootstrap/js/bootstrap.js
vendored
6
modules/bootstrap/js/bootstrap.min.js
vendored
@ -1,34 +0,0 @@
|
||||
/* ---- Gebo Admin blue theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #3993ba;
|
||||
background: -moz-linear-gradient(top, #3993ba 0%, #067ead 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3993ba), color-stop(100%,#067ead));
|
||||
background: -webkit-linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
background: -o-linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
background: -ms-linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
background: linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3993ba', endColorstr='#067ead',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #c1dce7;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #206484 !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#2078A1;
|
||||
border-right-color:#3497C2;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #48a6d2 !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#ebf2f6 !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#d4e3eb !important}
|
||||
@ -1,39 +0,0 @@
|
||||
/* ---- Gebo Admin brown theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #9b6e3b;
|
||||
background: -moz-linear-gradient(top, #9b6e3b 0%, #76542d 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9b6e3b), color-stop(100%,#76542d));
|
||||
background: -webkit-linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
background: -o-linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
background: -ms-linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
background: linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9b6e3b', endColorstr='#76542d',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #efe3d5;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #76542d !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#76542d;
|
||||
border-right-color:#bb884e;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #b47f44 !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #b47f44 !important;
|
||||
border-color:#b47f44 !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#f8f3ee !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#eee2d6 !important}
|
||||
@ -1,39 +0,0 @@
|
||||
/* ---- Gebo Admin dark theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #45484d;
|
||||
background: -moz-linear-gradient(top, #45484d 0%, #000000 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000));
|
||||
background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
background: -o-linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
background: -ms-linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
background: linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #bababa;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #555 !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#000;
|
||||
border-right-color:#3b3b3b;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #5c778a !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #5c778a !important;
|
||||
border-color:#5c778a !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#f0f3f5 !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#dce3e7 !important}
|
||||
@ -1,39 +0,0 @@
|
||||
/* ---- Gebo Admin eastern blue theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #37b0c9;
|
||||
background: -moz-linear-gradient(top, #37b0c9 0%, #1294af 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#37b0c9), color-stop(100%,#1294af));
|
||||
background: -webkit-linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
background: -o-linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
background: -ms-linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
background: linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#37b0c9', endColorstr='#1294af',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #c7f0f9;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #0f7a90 !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#0f7a90;
|
||||
border-right-color:#15aece;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #1294af !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #1294af !important;
|
||||
border-color:#1294af !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#eaf5f8 !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#d1e9f0 !important}
|
||||
@ -1,6 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('PT Sans'), local('PTSans-Regular'), url(modules/css/LKf8nhXsWg5ybwEGXk8UBQ.woff) format('woff');
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
/* ---- Gebo Admin green theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #83994c;
|
||||
background: -moz-linear-gradient(top, #83994c 0%, #627530 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#83994c), color-stop(100%,#627530));
|
||||
background: -webkit-linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
background: -o-linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
background: -ms-linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
background: linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#83994c', endColorstr='#627530',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #dae5bf;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #58692b !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#627530;
|
||||
border-right-color:#80993f;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #6c8135 !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #6c8135 !important;
|
||||
border-color:#6c8135 !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#eff7ec !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#dbedd4 !important}
|
||||
@ -1,11 +0,0 @@
|
||||
/* ---- Gebo Admin ie fixes ---- */
|
||||
|
||||
.sidebar {position:fixed;top:40px;left:0;margin-left:0}
|
||||
.p_canvas {display:none}
|
||||
.modal-header .close {filter: alpha(opacity = 100);}
|
||||
.dataTables_filter {overflow:hidden}
|
||||
.row-fluid input[class*="span"],.row-fluid textarea[class*="span"],.row-fluid select[class*="span"] {display:inline;min-height:18px}
|
||||
.ui-spinner input, .ui-spinner input:focus {min-height:18px;padding-top:5px}
|
||||
.js #simple_wizard,.js #validate_wizard {visibility:visible}
|
||||
.step {border:none}
|
||||
input:focus,textarea:focus {border-color: #75b9f0}
|
||||
@ -1,856 +0,0 @@
|
||||
html {overflow-y: scroll}
|
||||
body {background-color: #f3f3f3;padding: 0}
|
||||
|
||||
html,body {height:100%}
|
||||
|
||||
/* fix for inputs inline shadow */
|
||||
input[type="text"], input[type="email"], input[type="search"], input[type="password"] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
}
|
||||
/* no borders for buttons (ie7) */
|
||||
button {*border: none !important;*border-color: transparent !important}
|
||||
|
||||
a,button,input {outline:none !important}
|
||||
|
||||
/* webkit extra margin fix */
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
button {margin: 0px}
|
||||
}
|
||||
|
||||
/* hide all elements & show preloader */
|
||||
.js, .js body {overflow:hidden}
|
||||
.js body > * {visibility:hidden}
|
||||
.js #loading_layer {visibility:visible;display:block !important;position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;z-index:10000}
|
||||
.js #loading_layer img {position:fixed;top:50%;left:50%;width:64px;height:10px;margin:-5px 0 0 -32px}
|
||||
.js .tab-pane {display:block !important}
|
||||
.js .hide {display: inherit}
|
||||
|
||||
/* external links */
|
||||
.external_link {background: url(modules/img/external_link.png) no-repeat right center;padding-right:12px}
|
||||
|
||||
/* main headings*/
|
||||
.heading {border-bottom: 1px solid #dcdcdc;margin-bottom: 18px;padding-bottom: 5px}
|
||||
.heading h1,.heading h2,.heading h3,h1.heading,h2.heading,h3.heading,.modal-header h3 {font-family: 'PT Sans', sans-serif;font-weight:400}
|
||||
.heading .btn {vertical-align:bottom;margin-left:10px}
|
||||
|
||||
/* fix for .label position */
|
||||
h1 + .label {margin:13px 10px 0 0}
|
||||
h2 + .label {margin:12px 10px 0 0}
|
||||
h3 + .label {margin:7px 10px 0 0}
|
||||
|
||||
/* element separation */
|
||||
.sepH_a {margin-bottom:5px}.sepH_b {margin-bottom:10px}.sepH_c {margin-bottom:20px}
|
||||
.sepV_a {margin-right:5px}.sepV_b {margin-right:10px}.sepV_c {margin-right:20px}
|
||||
.sepH_a_line {padding-bottom:6px;margin-bottom:18px;border-bottom:1px solid #dcdcdc}
|
||||
.sepH_no {margin-bottom:0}
|
||||
|
||||
.tac {text-align:center}
|
||||
.line_sep {border-bottom: 1px solid #dcdcdc;margin-bottom: 18px;padding-bottom: 5px}
|
||||
.sml_t {font-size:11px}
|
||||
.sml {font-size:11px;color:#9d9d9d}
|
||||
|
||||
/* accordion background animation */
|
||||
.accordion-toggle {
|
||||
-webkit-transition:background-color 0.2s ease-in-out;
|
||||
-moz-transition:background-color 0.2s ease-in-out;
|
||||
-o-transition:background-color 0.2s ease-in-out;
|
||||
transition:background-color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* text-shadow */
|
||||
.ov_boxes .ov_text,.dshb_icoNav li a,.table th,.fc thead th{text-shadow: 1px 1px 0 #fff}
|
||||
.dataTables_wrapper .sorting_asc,.dataTables_wrapper .sorting_desc {text-shadow: 1px 1px 0 #eee}
|
||||
|
||||
/* Bootstrap adjustments */
|
||||
|
||||
[class^="icon-"], [class*=" icon-"] {margin-top:0}
|
||||
.btn-mini [class^="icon-"], btn-mini [class*=" icon-"] {margin-top:1px}
|
||||
|
||||
h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:700;color:inherit;text-rendering:optimizelegibility;margin:0}
|
||||
h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:400;color:#999}
|
||||
h1{font-size:30px;line-height:36px}
|
||||
h2{font-size:24px;line-height:36px}
|
||||
h3{font-size:18px;line-height:27px}
|
||||
h4,h5,h6{line-height:18px}
|
||||
h6{font-size:11px;color:#999;text-transform:uppercase}
|
||||
h1 small,h2 small{font-size:18px}
|
||||
h3 small,h4{font-size:14px}
|
||||
h4 small,h5{font-size:12px}
|
||||
|
||||
.row-fluid div[class*="span"] {min-height:1px}
|
||||
form .row-fluid + .row-fluid {margin-top:10px !important}
|
||||
|
||||
.main_content .row-fluid + .row-fluid {margin-top: 30px}
|
||||
|
||||
.nav-pills + .nav-pills {margin-left: 10px;padding-left:10px;border-left: 1px solid #dcdcdc}
|
||||
.nav-pills > li > a {padding: 5px 8px}
|
||||
|
||||
.navbar-fixed-top, .navbar-fixed-bottom {z-index:999}
|
||||
.navbar-fixed-top .nav-collapse i {opacity:0.8}
|
||||
.navbar-fixed-top .nav-collapse li:hover i {opacity:1}
|
||||
.nav-list > li > a,.dropdown-menu li a {-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
.navbar-fixed-top .navHover:after {height:1px;width:100%;bottom:-1px;position:absolute;content:'';display:block}
|
||||
.navbar .nav > li > a.nav_condensed {padding-left:2px;padding-right:2px}
|
||||
|
||||
.pagination ul > li > div > a,.pagination ul > li > div > span {float: left;padding: 0 14px;line-height: 38px;text-decoration: none;background-color: #ffffff;border: 1px solid #dddddd;border-left-width: 0}
|
||||
.pagination ul > li > div > a:hover,.pagination ul > .active > div > a,.pagination ul > .active > div > span {background-color: #f5f5f5}
|
||||
.pagination ul > .active > div > a,.pagination ul > .active > div > span {color: #999999;cursor: default}
|
||||
.pagination ul > .disabled > div > span,.pagination ul > .disabled > div > a,.pagination ul > .disabled > div > a:hover {color: #999999;cursor: default;background-color: transparent}
|
||||
.pagination ul > li:first-child > div > a,.pagination ul > li:first-child > div > span {border-left-width: 1px;-webkit-border-radius: 3px 0 0 3px;-moz-border-radius: 3px 0 0 3px;border-radius: 3px 0 0 3px}
|
||||
.pagination ul > li:last-child > div > a,.pagination ul > li:last-child > div > span {-webkit-border-radius: 0 3px 3px 0;-moz-border-radius: 0 3px 3px 0;border-radius: 0 3px 3px 0}
|
||||
|
||||
.pagination {height:26px}
|
||||
.pagination a.active {background-color: #f5f5f5}
|
||||
.pagination a.active {color: #999;cursor: default}
|
||||
.pagination ul > li > a,.pagination ul > li > span,.pagination ul > li > div > a,.pagination ul > li > div > span {line-height: 24px;padding:0 10px}
|
||||
.pagination ul > li > div.page {display:inline}
|
||||
|
||||
.pager a {-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;padding:4px 12px}
|
||||
|
||||
.label {cursor:default;font-size:11px;padding:2px 4px}
|
||||
.label-important,.badge-error {background: #C62626}
|
||||
.label-success,.badge-success {background: #70A415}
|
||||
.label-warning,.badge-warning {background: #F5AA1A}
|
||||
.label-info,.badge-info {background: #058DC7}
|
||||
|
||||
.alert .close {top:0}
|
||||
.alert-block p + p,.alert-block ul + p,.alert-block p + ul {margin-top:10px}
|
||||
.alert-block h4 + p,.alert-block h4 + ul {margin-top:5px}
|
||||
.icon-sw {width:16px;height:16px;display:inline-block;background-repeat: no-repeat;background-position: center center}
|
||||
|
||||
.well {-webkit-box-shadow: none;-moz-box-shadow: none;-ms-box-shadow: none;box-shadow: none}
|
||||
|
||||
.dropdown-menu li {padding:0 5px}
|
||||
.dropdown-menu li a {padding:3px 20px 3px 8px;position:relative}
|
||||
|
||||
.modal-footer {padding:7px 15px 8px}
|
||||
.modal {border:8px solid rgba(0, 0, 0, 0.5);-webkit-box-shadow: none;-moz-box-shadow: none;-ms-box-shadow: none;box-shadow: none}
|
||||
.modal-header {background:#e4e4e4;border-color:#d4d4d4;padding:5px 15px}
|
||||
.modal-header .close {margin-top:5px}
|
||||
.modal-body{padding:20px 15px}
|
||||
.modal-backdrop, .modal-backdrop.fade.in {opacity:.1;background:#777}
|
||||
|
||||
.main_content .accordion-heading .accordion-toggle {background-color:#f5f5f5;color:#222;text-decoration:none;background-image: url(modules/img/acc_icons.png);background-position: 98% 12px;background-repeat:no-repeat}
|
||||
.main_content .accordion-heading .accordion-toggle:hover {background-color:#e5e5e5}
|
||||
.main_content .accordion-heading .acc-in {background-position:98% -34px}
|
||||
|
||||
.btn-gebo {text-shadow: 0px -1px 0px #004f6f;color:#fff;background-color:#006d8d;background-image:-moz-linear-gradient(top, #1e8bab, #004f6f); background-image: -ms-linear-gradient(top, #1e8bab, #004f6f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1e8bab), to(#004f6f)); background-image: -webkit-linear-gradient(top, #1e8bab, #004f6f); background-image: -o-linear-gradient(top, #1e8bab, #004f6f); background-image: linear-gradient(top, #1e8bab, #004f6f); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e8bab', endColorstr='#004f6f', GradientType=0); border-color: #006D8D #004f6f #004f6f #006D8D; border-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.25); }
|
||||
.btn-gebo:hover, .btn-gebo:active, .btn-gebo.active, .btn-gebo.disabled, .btn-gebo[disabled] {background-color: #004f6f}
|
||||
.btn-gebo:hover {color:#fff;text-shadow: 0px -1px 0px #003151}
|
||||
.btn-gebo:focus {color: #fff;-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); border-color: #006D8D #004f6f #004f6f #006D8D; border-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.25); }
|
||||
.btn-gebo.active, .btn-gebo:active { background-image: none;-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); color: #64d1f1; }
|
||||
|
||||
.table-striped tbody tr:nth-child(2n) td, .table-striped tbody tr:nth-child(2n) th {background: #fff}
|
||||
|
||||
.modal_box {background: #fff;padding:20px}
|
||||
.modal_box form {background: #fff}
|
||||
#colorbox ~ .bootstrap-timepicker,#colorbox ~ .colorpicker,#colorbox ~ .datepicker {z-index:10000}
|
||||
textarea, input {outline: none}
|
||||
|
||||
tr.rowlink td {cursor:pointer}
|
||||
tr.rowlink td.nolink {cursor:auto}
|
||||
.table tbody tr.rowlink:hover td {background-color: #efefef}
|
||||
a.rowlink {font: inherit;color: inherit;text-decoration: inherit}
|
||||
.navbar .nav > li > a:focus {color:#fff}
|
||||
.input-append .active, .input-prepend .active {border:none;background:none}
|
||||
|
||||
/* header */
|
||||
.navbar .brand {width: 200px;padding-bottom:0;padding-top:0;font: 100 18px/36px 'PT Sans', sans-serif;text-decoration:none;color: #fff;text-shadow:none}
|
||||
.navbar .brand i {margin-top:5px}
|
||||
.navbar .caret {opacity: .6;filter: alpha(opacity=60)}
|
||||
.navbar .user_menu {margin-left: 0}
|
||||
.navbar .user_menu .nb_boxes {margin:9px 0 0}
|
||||
.navbar .user_menu .nb_boxes .label {background: transparent;background:rgba(0,0,0,.2);padding:3px 4px}
|
||||
.navbar .user_menu .nb_boxes a {cursor:pointer;float:left;margin-right:8px}
|
||||
.navbar .user_menu .nb_boxes a:last-child {margin:0}
|
||||
.navbar .user_menu a.dropdown-toggle {white-space:nowrap}
|
||||
.navbar .user_menu .user_avatar {margin-right:6px;height:20px}
|
||||
.btn_menu {display:none}
|
||||
|
||||
/* main content */
|
||||
#maincontainer {background-image: url(../img/main_bg.gif);background-repeat:repeat-y;min-height:100%}
|
||||
#contentwrapper{float: left;width: 100%}
|
||||
.main_content{padding:64px 30px 30px;background:#fff;border-left:1px solid transparent;margin-left:240px}
|
||||
.main_content li{line-height:22px}
|
||||
|
||||
/* sidebar */
|
||||
.sidebar{margin-left:-100%;width:240px;float:left;position:relative}
|
||||
.sidebar_sep{background:#efefef;clear:both;float:none;height:5px;border-color:#ccc;border-style:solid;border-width:1px 0;margin:14px 0}
|
||||
.sidebar_switch{text-indent:-10000px;width:16px;position:fixed;left:220px;top:45px;height:14px;cursor:pointer;z-index:100;display:block;opacity:.5}
|
||||
.on_switch {background: url(../img/sidebar_switch.png) no-repeat 0 -19px}
|
||||
.off_switch {background: url(../img/sidebar_switch.png) no-repeat 0 -1px}
|
||||
.sidebar_inner form{padding:14px 0 9px 15px}
|
||||
.sidebar_inner form input{margin:0}
|
||||
|
||||
.sidebar_hidden .sidebar {display:none}
|
||||
.sidebar_hidden .sidebar_switch {left:4px;}
|
||||
.sidebar_hidden .main_content {margin:0;border-left:none}
|
||||
.sidebar_hidden {background: #fff}
|
||||
|
||||
.sidebar_hidden #maincontainer {background: #fff}
|
||||
.sidebar_info {width:180px;position:relative;left:30px;bottom:10px}
|
||||
.sidebar_info ul {padding:5px 10px;margin:0;font-size:11px;background:#fafafa;border:1px solid #e5e5e5;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.sidebar_info ul li {line-height:26px;overflow:hidden;border-bottom:1px dashed #ccc}
|
||||
.sidebar_info ul li:last-child {border:none}
|
||||
.sidebar_info .act {float:right}
|
||||
|
||||
.sidebar .accordion {border-top: 1px solid #ccc;margin-bottom: 20px;margin-right:1px}
|
||||
.sidebar .accordion-heading {text-shadow: 1px 1px 0 #efefef;background: #e0e0e0;-webkit-box-shadow: inset 0px 1px 0px 0px #ececec;box-shadow: inset 0px 1px 0px 0px #ececec}
|
||||
.sidebar .accordion-heading a:hover {background-color: #cfcfcf}
|
||||
.sidebar .accordion-group{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;margin-bottom:0;border-color:#ccc;border-style:solid;border-width:0 0 1px}
|
||||
.sidebar .accordion-group a{color:#222;text-decoration:none!important}
|
||||
.sidebar .accordion-group .active a{color:#fff}
|
||||
.sidebar .accordion-group .accordion-heading a{color:#222}
|
||||
.sidebar .accordion-inner{border-top:1px solid #ccc;background:#fafafa}
|
||||
|
||||
.sdb_h_active a {background: url("../img/bullet_green.png") no-repeat 98% center}
|
||||
|
||||
/* login page */
|
||||
.login_page {overflow:auto}
|
||||
.login_page body {height:100%;max-width:inherit;margin:0 20px}
|
||||
.login_page .login_box {position:relative;top:40%;width:520px;margin:0 auto 0px;margin-top:-220px;background:#fff;border:1px solid #ccc;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;-webkit-box-shadow: 0 0 6px rgba(0,0,0,0.2);-moz-box-shadow: 0 0 6px rgba(0,0,0,0.2);-ms-box-shadow: 0 0 6px rgba(0,0,0,0.2);box-shadow: 0 0 6px rgba(0,0,0,0.2)}
|
||||
.login_page .top_b {text-shadow:0 1px 0 rgba(255,255,255,.5);font: 100 18px/42px 'PT Sans', sans-serif;height:42px;padding:0 20px;background: #e0e0e0;border-bottom:1px solid #ccc;-moz-border-radius-topleft: 6px;-moz-border-radius-topright: 6px;-moz-border-radius-bottomright: 0px;-moz-border-radius-bottomleft: 0px;-webkit-border-radius: 6px 6px 0px 0px;border-radius: 6px 6px 0px 0px;font-size:15px}
|
||||
.login_page .cnt_b {padding-top:20px;width:66%;margin:0 auto}
|
||||
.login_page form {margin-bottom:0}
|
||||
.login_page .btm_b {padding:12px 20px;border-top:1px solid #e7e7e7;background:#f7f7f7;-moz-border-radius-topleft: 0px;-moz-border-radius-topright: 0px;-moz-border-radius-bottomright: 6px;-moz-border-radius-bottomleft: 6px;-webkit-border-radius: 0px 0px 6px 6px;border-radius: 0px 0px 6px 6px}
|
||||
.login_page .links_b {width:100%;font-size:11px;text-align:center;position:absolute;bottom:-24px}
|
||||
.login_page .link_reg {font-size:11px;padding:5px 0 0;display:block}
|
||||
.alert-login {margin:10px 10px 0}
|
||||
|
||||
/* error pages */
|
||||
.error_page {background:#eee}
|
||||
.error_page,.error_page body,.error_page .error_box {height:100%}
|
||||
.error_page h1 {font-family: 'Jockey One', sans-serif;font-size: 52px;line-height:1.1;text-transform: uppercase;color: #067ead;text-shadow: 2px 2px 0px rgba(255,255,255,.5), 4px 4px 0px rgba(0,0,0,.1);margin-bottom:10px;padding:40px 0 0 300px}
|
||||
.error_page p {color:inherit;font-size:16px;line-height:24px;font-weight:200;margin-left:300px}
|
||||
.error_page .back_link {margin-left:300px}
|
||||
.error_page .error_box {background: url(../img/error_big.png) no-repeat 0 0;padding:0;width:72%;margin: 0 auto}
|
||||
|
||||
/* search page */
|
||||
.search_page .well {padding:10px 20px;line-height:26px}
|
||||
.search_page .well select {margin:0;width:auto}
|
||||
.search_page .search_panel {border:1px solid #e0e0e0;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;margin-bottom:20px}
|
||||
.search_page .search_item {border-bottom:1px solid #e0e0e0;padding:10px 20px 10px 30px;position:relative}
|
||||
.search_page .search_item:nth-child(even) {background:#f2f8fd}
|
||||
.search_page .search_item:last-child {border:none}
|
||||
.search_page .search_content {padding-left:110px}
|
||||
.search_page .search_content h4 {font-size:14px;margin-bottom:6px}
|
||||
.search_page .search_content h4 {vertical-align:text-top}
|
||||
.search_page .search_content strong {color:#666}
|
||||
.search_page .search_content small {color:#666;font-size:11px}
|
||||
.search_page .searchNb {position:absolute;top:10px;left:10px;color:#ccc;font-size:11px}
|
||||
.search_page .result_view a {opacity:0.3}
|
||||
.search_page .result_view a.active {opacity:1}
|
||||
|
||||
.search_page .box_view {border:none;margin-left:-1%}
|
||||
.search_page .box_view .search_item {margin-left:1%;border:1px solid #e0e0e0;height:200px;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;margin:0 0 1% 1%;float:left;width:32.333%;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;box-sizing: border-box}
|
||||
.search_page .box_view h4 {height:20px;overflow:hidden}
|
||||
.search_page .box_view .item_description {max-height:92px;overflow:hidden}
|
||||
.search_page .box_view .label {position:absolute;top:-9px;right:-6px}
|
||||
|
||||
.sidebar_filters {padding:30px 30px 20px}
|
||||
.sidebar_filters h3 {font-size:13px;color:#067EAD}
|
||||
.sidebar_filters .filter_items {padding:5px 10px 10px;margin-bottom:10px;border-bottom:1px dashed #ccc}
|
||||
|
||||
/* forms */
|
||||
.formRow:last-child input, .formRow:last-child textarea, .formRow:last-child select, .uneditable-input {margin-bottom: 0}
|
||||
.formRow small {display:block;font-size:11px;color:#999;line-height:14px}
|
||||
.formSep {margin-bottom:12px;padding-bottom:12px;border-bottom:1px dashed #dcdcdc}
|
||||
|
||||
.stacked select, .stacked input[type="text"],.stacked textarea {display:block}
|
||||
|
||||
.help-inline,.help-block {font-size:11px;margin:-4px 0 0 2px}
|
||||
|
||||
.form-horizontal .help-block {margin-top:2px}
|
||||
.form-horizontal .control-group {margin-bottom:14px}
|
||||
|
||||
input.focused {border-color: rgba(82,168,236,.8);-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);outline: 0;z-index:2;position:relative}
|
||||
|
||||
.f_warning > label,.f_warning .help-block,.f_warning .help-inline{color:#c09853}
|
||||
.f_warning input,.f_warning select,.f_warning textarea{color:#c09853;border-color:#c09853}
|
||||
.f_warning input:focus,.f_warning select:focus,.f_warning textarea:focus{-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e;border-color:#a47e3c}
|
||||
.f_warning .input-prepend .add-on,.f_warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}
|
||||
|
||||
.f_error input,.f_error select,.f_error textarea{color:#b94a48;border-color:#b94a48}
|
||||
.f_error input:focus,.f_error select:focus,.f_error textarea:focus{-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392;border-color:#953b39}
|
||||
.f_error .input-prepend .add-on,.f_error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}
|
||||
.f_error label.error {display:block;font-size:11px;font-weight:700;color:#C62626}
|
||||
input[type="text"] + label.error,input[type="password"] + label.error, select + label.error, textarea + label.error {margin-top:-6px}
|
||||
.f_error label.radio + label.error,.f_error label.checkbox + label.error {margin-top:5px}
|
||||
.input-prepend.f_error label.error,.input_append.f_error label.error {margin-top:4px}
|
||||
.control-group.f_error label.error {margin-top:2px}
|
||||
|
||||
.f_success > label,.f_success .help-block,.f_success .help-inline{color:#468847}
|
||||
.f_success input,.f_success select,.f_success textarea{color:#468847;border-color:#468847}
|
||||
.f_success input:focus,.f_success select:focus,.f_success textarea:focus{-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b;border-color:#356635}
|
||||
.f_success .input-prepend .add-on,.f_success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}
|
||||
|
||||
.ui-tooltip label {margin-bottom:0}
|
||||
.f_legend {font-size:16px;line-height:16px;padding-bottom:10px;margin-bottom:22px;border-bottom:1px solid #dcdcdc}
|
||||
.radio.inline, .checkbox.inline {margin-left:0 !important;margin-right:10px}
|
||||
|
||||
.f_req {font-size:13px;color:#ff0000;font-family: helvetica, arial, sans-serif}
|
||||
.form-horizontal .controls.text_line {line-height:25px}
|
||||
|
||||
.row-fluid input[class*="span"],.row-fluid textarea[class*="span"],.row-fluid select[class*="span"] {display:inline-block}
|
||||
.row-fluid input[class*="span"] + input[class*="span"], .row-fluid textarea[class*="span"] + textarea[class*="span"], .row-fluid select[class*="span"] + select[class*="span"] {display:block}
|
||||
|
||||
textarea {resize: none}
|
||||
|
||||
/* file upload */
|
||||
.btn.btn-file{overflow:hidden;position:relative;vertical-align:middle}
|
||||
.btn.btn-file > input[type=file]{width:100%;position:absolute;left:0;top:0;opacity:0;cursor:pointer}
|
||||
.fileupload{margin-bottom:9px}
|
||||
.fileupload .uneditable-input{display:inline-block;margin-bottom:0;vertical-align:middle;height:28px !important;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;box-sizing: border-box}
|
||||
.fileupload .thumbnail{overflow:hidden;display:inline-block;margin-bottom:5px;vertical-align:middle;text-align:center}
|
||||
.fileupload .thumbnail > img{display:block;vertical-align:middle;max-height:100%}
|
||||
.fileupload .btn{vertical-align:middle}
|
||||
.fileupload-exists .fileupload-new,.fileupload-new .fileupload-exists{display:none}
|
||||
.fileupload-inline .fileupload-controls{display:inline}
|
||||
.fileupload-new .input-append .btn-file{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}
|
||||
.fileupload .fileupload-preview {vertical-align:middle}
|
||||
.fileupload .close.fileupload-exists {vertical-align:middle}
|
||||
|
||||
/* input spinner */
|
||||
.ui-spinner button {height:14px;position:absolute;background:none;border:none;width:18px;padding:0;background: url(../img/spinner_arrows.gif) no-repeat 0 -100px;cursor:pointer}
|
||||
.ui-spinner .ui-spinner-up {top:0;right:0;background-position:0 0}
|
||||
.ui-spinner .ui-spinner-down {top:14px;right:0;background-position:0 -14px}
|
||||
.ui-spinner .ui-spinner-up:hover {background-position:-18px 0}
|
||||
.ui-spinner .ui-spinner-down:hover {background-position:-18px -14px}
|
||||
.ui-spinner input,.ui-spinner input:focus {display:block !important;margin:0 !important;padding:0;min-height:28px !important;height:28px !important;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;box-shadow:none}
|
||||
.ui-spinner ul {margin:0}
|
||||
.ui-spinner li {line-height:28px}
|
||||
.ui-spinner{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);position:relative;margin-bottom:10px;font-size:13px;height:28px;line-height:28px;color:#555;background-color:#fff;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;overflow:hidden;padding:0 24px 0 8px}
|
||||
.ui-spinner .ui-spinner-box {background: none;border: none !important}
|
||||
|
||||
/* animated progresbars */
|
||||
.pbar .ui-progressbar-value {display:block !important}
|
||||
.pbar {overflow: hidden}
|
||||
.percent,.elapsed {position:relative;text-align: right; font-size: 12px}
|
||||
|
||||
/* ul list styles */
|
||||
.list_a,.list_b,.list_c,.list_d {margin-left:0;list-style:none}
|
||||
.list_a li {background: url(../img/bullet_blue.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_b li {background: url(../img/bullet_green.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_c li {background: url(../img/bullet_orange.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_d li {background: url(../img/bullet_red.png) no-repeat 3px 4px;padding-left:25px}
|
||||
|
||||
/* prettyprint <pre> block */
|
||||
.lit{color:#195f91}
|
||||
.fun{color:#dc322f}
|
||||
.str,.atv{color:#D14}
|
||||
.kwd,.linenums .tag{color:#1e347b}
|
||||
.typ,.atn,.dec,.var{color:teal}
|
||||
.pln{color:#48484c}
|
||||
.prettyprint{background-color:#f7f7f9;border:1px solid #e1e1e8;padding:8px}
|
||||
.prettyprint.linenums{-webkit-box-shadow:inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;-moz-box-shadow:inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;box-shadow:inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0}
|
||||
ol.linenums{margin:0 0 0 33px}
|
||||
ol.linenums li{padding-left:12px;color:#bebec5;line-height:18px;text-shadow:0 1px 0 #fff}
|
||||
.com,.pun,.opn,.clo{color:#93a1a1}
|
||||
|
||||
/* rowlink plugin */
|
||||
[data-rowlink] td, td[data-rowlink],[data-msg_rowlink] td, td[data-msg_rowlink] {cursor: pointer}
|
||||
[data-rowlink] td.nohref, td.nohref[data-rowlink], [data-msg_rowlink] td.nohref, td.nohref[data-msg_rowlink] {cursor:default}
|
||||
|
||||
/* actions links */
|
||||
.act{background:inherit;border:none;display:inline;color:#555;font-weight:700;-webkit-transition:text-shadow .1s linear;-moz-transition:text-shadow .1s linear;-ms-transition:text-shadow .1s linear;-o-transition:text-shadow .1s linear;transition:text-shadow .1s linear;padding:0}
|
||||
a.act:hover{color:#333;text-decoration:none;text-shadow:1px 1px 3px rgba(85,85,85,0.5)}
|
||||
.act-primary{color:#006dcc}
|
||||
a.act-primary:hover{color:#04c;text-shadow:1px 1px 3px rgba(0,109,204,0.5)}
|
||||
.act-info{color:#49afcd}
|
||||
a.act-info:hover{color:#2f96b4;text-shadow:1px 1px 3px rgba(75,175,206,0.5)}
|
||||
.act-success{color:#70A415}
|
||||
a.act-success:hover{color:#468847;text-shadow:1px 1px 3px rgba(81,164,81,0.5)}
|
||||
.act-warning{color:#F5AA1A}
|
||||
a.act-warning:hover{color:#f89406;text-shadow:1px 1px 3px rgba(192,152,84,0.5)}
|
||||
.act-danger{color:#C62626}
|
||||
a.act-danger:hover{color:#bd362f;text-shadow:1px 1px 3px rgba(185,72,70,0.5)}
|
||||
.act.disabled,.act[disabled]{color:#AAA;cursor:not-allowed}
|
||||
a.act.disabled:hover,.act[disabled]:hover{color:#AAA;text-shadow:none}
|
||||
.form-actions .act{line-height:30px}
|
||||
|
||||
/* tabs */
|
||||
.tabbable-bordered{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
|
||||
.tabbable-bordered > .nav-tabs {margin: 0}
|
||||
.tabbable-bordered .tab-content {border-color: #ddd;border-style:solid;border-width:0;overflow:auto;padding:18px 0 0}
|
||||
.tabbable-bordered > .tab-content{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;border-width:0 1px 1px;padding:20px 20px 10px}
|
||||
|
||||
/* dashboard icon navigation*/
|
||||
.dshb_icoNav {margin:0;text-align:center}
|
||||
.dshb_icoNav li {-webkit-box-shadow: inset 0px 1px 0px 0px #fff;box-shadow: inset 0px 1px 0px 0px #fff;text-align:center;list-style:none;display:inline-block;margin:0 5px 10px;background: #f9f9f9;background: -moz-linear-gradient(top, #f9f9f9 0%, #efefef 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#efefef));background: -webkit-linear-gradient(top, #f9f9f9 0%,#efefef 100%);background: -o-linear-gradient(top, #f9f9f9 0%,#efefef 100%);background: -ms-linear-gradient(top, #f9f9f9 0%,#efefef 100%);background: linear-gradient(top, #f9f9f9 0%,#efefef 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#efefef',GradientType=0 );border:1px solid #e2e2e2;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.dshb_icoNav li:hover {border-color:#d2d2d2;-moz-box-shadow: 0 0 6px #ccc;-webkit-box-shadow: 0 0 6px #ccc;box-shadow: 0 0 6px #ccc}
|
||||
.dshb_icoNav li a {position:relative;display:block;padding:42px 8px 8px;width:88px;height:22px;font-size:12px;color:#222;background-repeat:no-repeat;background-position: center 10px}
|
||||
.dshb_icoNav li a:hover {text-decoration:none}
|
||||
.dshb_icoNav .label {position:absolute;right:-5px;top:-5px}
|
||||
.iconNav_left {text-align:left}
|
||||
.iconNav_right {text-align:right}
|
||||
|
||||
/* overview boxes (+small charts) */
|
||||
.ov_boxes {list-style: none;display: inline-block;margin:0 0 -20px;text-align:center}
|
||||
.ov_boxes li {-webkit-box-shadow: inset 0px 1px 0px 0px #fff;box-shadow: inset 0px 1px 0px 0px #fff;line-height:18px;background: #f9f9f9;background: -moz-linear-gradient(top, #f9f9f9 0%, #ededed 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ededed));background: -webkit-linear-gradient(top, #f9f9f9 0%,#ededed 100%);background: -o-linear-gradient(top, #f9f9f9 0%,#ededed 100%);background: -ms-linear-gradient(top, #f9f9f9 0%,#ededed 100%);background: linear-gradient(top, #f9f9f9 0%,#ededed 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#ededed',GradientType=0 );border: 1px solid #e2e2e2;display: inline-block;margin:0 10px 10px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;padding: 0 10px}
|
||||
.ov_boxes .p_canvas{margin-right:12px;float:left;border-right:1px solid #dcdcdc;-webkit-box-shadow:1px 0 0 0 #fff;-moz-box-shadow:1px 0 0 0 #fff;box-shadow:1px 0 0 0 #fff;padding:10px 14px 6px 4px}
|
||||
.ov_boxes .ov_text{text-align:left;width:150px;font-size:12px;float:left;padding:9px 10px 7px 0}
|
||||
.ov_boxes .ov_text strong{font-size:16px;display:block}
|
||||
.p_canvas {width:50px}
|
||||
|
||||
/* widgets */
|
||||
.w-box {-webkit-box-shadow: 0px 1px 2px 0px #efefef;box-shadow: 0px 1px 2px 0px #efefef}
|
||||
.w-box + .w-box {margin-top:20px}
|
||||
.w-box-header {height:32px;line-height:32px;border:1px solid #ddd;padding:0 10px;background: #fbfbfb;background: -moz-linear-gradient(top, #fbfbfb 0%, #f1f1f1 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbfbfb), color-stop(100%,#f1f1f1));background: -webkit-linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%);background: -o-linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%);background: -ms-linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%); background: linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbfbfb', endColorstr='#f1f1f1',GradientType=0 );font-weight:700;color:#666;font-size:11px}
|
||||
.w-box-header .btn-group {margin-top:5px;line-height:1}
|
||||
.w-box-header .dropdown-menu {font-size:12px;left:auto;right:0}
|
||||
.w-box-header input {padding:2px;margin:-2px 0 0}
|
||||
.w-box-content {border:1px solid #ddd;border-top:none}
|
||||
.w-box-content.cnt_a {padding:10px}
|
||||
.w-box-content table,.w-box-content pre {margin-bottom:0}
|
||||
.w-box-content pre {-webkit-border-radius: 0 0 0 0;-moz-border-radius: 0 0 0 0;-ms-border-radius: 0 0 0 0;border-radius: 0 0 0 0;border:none}
|
||||
.w-box-content .no-th tr:first-child td {border-top:none}
|
||||
.w-box-content .gebo-upload {margin:0}
|
||||
.w-box-content .gebo-upload .plupload_filelist_header {border-top:none}
|
||||
.w-box-content .gebo-upload .plupload_filelist_footer {border-bottom:none}
|
||||
.w-box-content .nav-tabs {position:relative;top:-30px;margin-bottom:-18px;border-bottom:none}
|
||||
.w-box-content .nav-tabs {float:right;clear:both}
|
||||
.w-box-content .nav-tabs > li > a {padding:4px 6px;font-size:11px}
|
||||
.w-box-content .nav-tabs > li.active > a {background:#fff !important}
|
||||
.w-box-content .nav-tabs > li > a:hover {border-color:#ddd #ddd transparent;background: transparent}
|
||||
.w-box-content .tab-content {clear:both}
|
||||
.w-box-content .tab-pane {padding:0 10px 10px}
|
||||
.w-box-footer {border:1px solid #ddd;padding:8px 10px;background: #fdfdfd;border-top:none}
|
||||
.w-box-footer .pagination {margin:0; font-size:11px;height:22px}
|
||||
.w-box-footer .pagination a {line-height:20px}
|
||||
|
||||
.page-toolbar {background:#f5f8fa;border:1px solid #ddd;padding:4px;margin-bottom:15px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
|
||||
/* sortable/searchable list */
|
||||
.user_list {list-style: none;margin:0}
|
||||
.user_list li {padding:0 8px 8px;margin-bottom:8px;border-bottom: 1px dashed #dcdcdc;line-height:normal }
|
||||
.user_list small {font-size: 11px;color:#9b9b9b}
|
||||
|
||||
/* file manager */
|
||||
#kcfinder_iframe {height:500px;margin-bottom:30px;border:1px solid #adaba9}
|
||||
|
||||
/* icon list */
|
||||
.icon_list_a,.icon_list_b,.icon_list_c,.icon_list_d {list-style: none;margin:0 0 30px}
|
||||
.icon_list_a li,.icon_list_b li,.icon_list_d li {padding:4px 0;width:30px;text-align:center;border:1px solid #dcdcdc;float:left;margin:4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
.icon_list_c li {padding:4px 0;width:40px;text-align:center;border:1px solid #dcdcdc;float:left;margin:4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
|
||||
/* aditional icons */
|
||||
.icon-adt_trash,.icon-adt_atach,.icon-adt_enter {background: url(../img/adt-icons.png) no-repeat 0 0;width:16px;height:16px}
|
||||
.icon-adt_atach {background-position:0 0}
|
||||
.icon-adt_trash {background-position:0 -24px}
|
||||
.icon-adt_enter {background-position:0 -47px;width:12px;height:12px}
|
||||
|
||||
/* google maps */
|
||||
.company_add_form legend {margin-bottom:10px;font-size:15px}
|
||||
#g_map img { max-width: none; }
|
||||
#g_map label {display:inline;margin:0;color:#000;font-size: 11px;line-height:normal}
|
||||
|
||||
/* gallery grid */
|
||||
.wmk_grid > ul {list-style: none;margin:0;position:relative}
|
||||
.wmk_grid > ul > li {background-color: #fff;display: none;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;box-sizing: border-box}
|
||||
.wmk_grid > ul > li>a,.wmk_grid ul > li>a img {display: block}
|
||||
.wmk_grid > ul > li>a img {width:100%}
|
||||
.wmk_grid > ul > li p {color: #666;font-size: 12px;margin: 8px 4px 2px;overflow:hidden}
|
||||
.wmk_grid > ul > li p a {display:inline-block;margin-left:10px;float:right;opacity:.6}
|
||||
.wmk_grid > ul > li p a:hover {opacity:1}
|
||||
.wmk_grid > ul > li p span {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
|
||||
.wmk_grid .thumbnail:hover {border-color:#0088CC}
|
||||
.wmk_grid .thumbnail>a {position:relative}
|
||||
.wmk_grid .thumbnail>a .vid_ico {position:absolute;top:10px;right:10px;display:block;width:16px;height:16px}
|
||||
.wmk_grid ul .self_vid .vid_ico {background: url(../img/vid_local.png) no-repeat 0 0}
|
||||
.wmk_grid .yt_vid .vid_ico {background: url(../img/vid_yt.png) no-repeat 0 0}
|
||||
.wmk_grid .vimeo_vid .vid_ico {background: url(../img/vid_vimeo.png) no-repeat 0 0}
|
||||
|
||||
/* small gallery grid */
|
||||
#small_grid > ul > li {width:120px}
|
||||
#small_grid > ul > li p {line-height:1.3}
|
||||
#small_grid > ul > li p span {font-size:11px}
|
||||
/* large gallery grid */
|
||||
#large_grid > ul > li,#mixed_grid > ul > li {width:220px}
|
||||
#large_grid > ul > li p span {width:70%}
|
||||
|
||||
.video-container {position: relative;padding-bottom: 55.75%;height: 0;overflow: hidden;background: rgba(0,0,0,.3)}
|
||||
.video-container iframe,.video-container object,.video-container embed {position: absolute;top: 0;left: 0;width: 100%;height: 100%}
|
||||
#cboxContent .video-js {width:640px !important;height:360px !important}
|
||||
|
||||
/* datatables */
|
||||
div.dataTables_length {text-align:left}
|
||||
div.dataTables_length select{width:75px}
|
||||
div.dataTables_filter {text-align:right}
|
||||
div.dataTables_filter label {float:none}
|
||||
div.dataTables_info{padding-top:8px}
|
||||
div.dataTables_paginate{float:right;margin:0}
|
||||
.dataTables_wrapper{position:relative;overflow:hidden}
|
||||
.dataTables_wrapper table.table {clear:both;margin-bottom:6px!important;max-width:inherit}
|
||||
.dataTables_wrapper table.table thead .sorting,table.table thead .sorting_asc,table.table thead .sorting_desc,table.table thead .sorting_asc_disabled,table.table thead .sorting_desc_disabled{cursor:hand;cursor:pointer}
|
||||
.dataTables_wrapper table.table thead .sorting{background: #e9f3f8 url(../lib/datatables/images/sort_both.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_asc{background: #e9f3f8 url(../lib/datatables/images/sort_asc.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_desc{background: #e9f3f8 url(../lib/datatables/images/sort_desc.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_asc_disabled{background: #e9f3f8 url(../lib/datatables/images/sort_asc_disabled.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_desc_disabled{background: #e9f3f8 url(../lib/datatables/images/sort_desc_disabled.png) no-repeat center right}
|
||||
.dataTables_wrapper table.dataTable th:active{outline:none}
|
||||
.dataTables_wrapper .row{margin:0 0 5px}
|
||||
.dataTables_wrapper select{min-height:inherit}
|
||||
.dataTables_wrapper table + .row{margin-bottom:0;margin-top:10px}
|
||||
.dataTables_scrollBody{-webkit-overflow-scrolling:touch}
|
||||
.dataTables_wrapper .top,.dataTables_wrapper .bottom{background-color:#f5f5f5;border:1px solid #CCC;padding:15px}
|
||||
.top .dataTables_info{float:none}
|
||||
.dataTables_empty{text-align:center!important;font-size:15px;background:#fff!important;padding:20px 0!important}
|
||||
.dataTables_scroll{clear:both;margin-bottom:10px}
|
||||
.dataTables_scrollHeadInner table.table-bordered{-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;border-bottom:none}
|
||||
.dataTables_scrollHeadInner table.table-bordered,.dataTables_scrollHeadInner table.table-bordered thead{border-bottom:none}
|
||||
.dataTables_scrollBody table{border-top:none}
|
||||
.dataTables_processing{position:absolute;top:50%;margin-top:-24px;z-index:100;left:50%;width:250px;margin-left:-125px;border:1px solid #ddd;text-align:center;color:#000;background:#fff;font-size:15px!important;-webkit-box-shadow:0 0 4px rgba(0,0,0,0.2);-moz-box-shadow:0 0 4px rgba(0,0,0,0.2);-ms-box-shadow:0 0 4px rgba(0,0,0,0.2);box-shadow:0 0 4px rgba(0,0,0,0.2);padding:10px 0}
|
||||
.dataTables_wrapper .center{text-align:center}
|
||||
.dataTables_wrapper .details,.dataTables_wrapper .details:hover{background:#ddd!important}
|
||||
.dataTables_wrapper .details table td{background:#fff!important}
|
||||
.dataTables_scrollHeadInner table.table,.dataTables_wrapper .details table.table{margin:0!important}
|
||||
.dataTables_wrapper .dt_actions {float:left;margin-right:20px}
|
||||
.dataTables_empty {cursor:default}
|
||||
.dTableR {width:100% !important}
|
||||
.col_vis_menu {float:right}
|
||||
.dataTables_paginate {height:auto}
|
||||
.DTTT_collection_background {display:none}
|
||||
|
||||
|
||||
/* floating header list */
|
||||
.-list-container {height:400px}
|
||||
.-list-container dd,.-list-container li,.-list-container .-list-fakeheader {list-style:none;margin:0;padding:0 10px;line-height:34px;height:34px;border-bottom:1px solid #efefef;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
||||
.-list-container dt,.-list-container .list_heading,.-list-container .-list-fakeheader {line-height:34px;height:34px;padding:0 10px;border-bottom:none;background: #f9f9f9;background: -moz-linear-gradient(top, #f9f9f9 0%, #ececec 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ececec));background: -webkit-linear-gradient(top, #f9f9f9 0%,#ececec 100%);background: linear-gradient(top, #f9f9f9 0%,#ececec 100%);border-bottom: 1px solid #d6d6d6}
|
||||
.-list-container .list_heading h3 {font-size:13px;line-height:36px}
|
||||
.-list-container {border:1px solid #ccc;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;margin:0;overflow-x:hidden}
|
||||
.ui-list {overflow:hidden}
|
||||
.ui-list ul {margin:0}
|
||||
#list-buttons {margin:0 0 6px}
|
||||
#list-buttons .btn {margin:0 4px 4px 0}
|
||||
.list-outer {position:relative;padding:30px 0}
|
||||
.slide-nav {cursor:pointer;position:absolute;left:50%;margin-left:-28px;height:14px;border-style:solid;border-color:#ccc;background:#f9f9f9;padding:5px 20px}
|
||||
.slide-up {top:5px;border-width:1px 1px 0;-webkit-border-radius: 4px 4px 0px 0px;border-radius: 4px 4px 0px 0px}
|
||||
.slide-down {bottom:5px;border-width:0px 1px 1px;-webkit-border-radius: 0px 0px 4px 4px;border-radius: 0px 0px 4px 4px}
|
||||
.slide-nav i {opacity:.6}
|
||||
.slide-nav:hover {background:#f0f0f0}
|
||||
.slide-nav:hover i {opacity:1}
|
||||
|
||||
/* responsive table */
|
||||
.mediaTableWrapper{position:relative}
|
||||
.mediaTableWrapperWithMenu{padding-top:48px}
|
||||
.mediaTableMenu li,.tableMenu li {padding:0 10px}
|
||||
.mediaTableMenu{position:absolute;top:0;left:0}
|
||||
.activeMediaTable th.optional,.activeMediaTable td.optional{display:none}
|
||||
@media (min-width: 1280px) {
|
||||
.activeMediaTable th.optional,.activeMediaTable td.optional{display:table-cell;_display:block}
|
||||
*+html .activeMediaTable th.optional,*+html .activeMediaTable td.optional{display:block}
|
||||
}
|
||||
@media (min-width: 980px) {
|
||||
.sidebar_hidden .activeMediaTable th.optional,.sidebar_hidden .activeMediaTable td.optional{display:table-cell;_display:block}
|
||||
*+html .sidebar_hidden .activeMediaTable th.optional,*+html .sidebar_hidden .activeMediaTable td.optional{display:block}
|
||||
}
|
||||
@media (min-width: 480px) and (max-width: 767px) {
|
||||
.activeMediaTable th.optional,.activeMediaTable td.optional{display:table-cell;_display:block}
|
||||
*+html .activeMediaTable th.optional,*+html .activeMediaTable td.optional{display:block}
|
||||
}
|
||||
|
||||
/* tables */
|
||||
.table_checkbox {width:13px}
|
||||
.table_vam th, .table_vam td {vertical-align: middle}
|
||||
.tab-content table.table {margin-bottom: 0 !important}
|
||||
|
||||
/* mailbox */
|
||||
.mbox .heading {padding-bottom:0}
|
||||
.mbox .heading .nav-tabs {margin-bottom:0;border-bottom:none}
|
||||
|
||||
.mbox .dataTables_wrapper .row {-webkit-box-shadow: inset 0px 1px 0px 0px #fefefe;box-shadow: inset 0px 1px 0px 0px #fefefe;margin:0;padding-bottom:10px;padding:8px 5px;border-width:1px 0;border-style:solid;border-color:#ddd;background:#f3f3f3}
|
||||
.mbox .dataTables_wrapper .row label {margin-bottom:0;line-height:28px}
|
||||
.mbox .dataTables_wrapper .row div.dataTables_info {padding-top:0;line-height:26px;color:#404040}
|
||||
.dataTables_wrapper table.mbox_table {margin:0 !important}
|
||||
.mbox_table tbody {color:#404040}
|
||||
.mbox_table .select_msg {margin-top:-2px;position:relative}
|
||||
.mbox_table .rowChecked td {background:#fffeed}
|
||||
.mbox .unread {font-weight:700}
|
||||
.js .mbox_star {display:none}
|
||||
.mbox_star {visibility:hidden;cursor:pointer}
|
||||
.mbox_star.splashy-star_full {visibility:visible}
|
||||
.mbox .pagination a {background:#fff}
|
||||
.mbox .pagination .disabled span, .pagination .disabled a, .pagination .disabled a:hover {background: transparent}
|
||||
.mbox .pagination .active a {background:#f5f5f5}
|
||||
|
||||
/* chat */
|
||||
.chat_box select {margin:0}
|
||||
.chat_box .chat_content {border:1px solid #ddd;-webkit-border-radius:6px;border-radius:6px}
|
||||
.chat_box .chat_message {margin-bottom:10px}
|
||||
.chat_box .chat_editor_box {margin:10px;border:1px solid #ddd;-webkit-border-radius:6px;border-radius:6px;min-height:40px}
|
||||
.chat_box .chat_editor_heading {height:20px;line-height:20px;padding:2px 8px 0}
|
||||
.chat_box .chat_editor_box textarea {border:none;margin:0;-webkit-box-shadow:none;box-shadow:none;-webkit-border-radius: 0px 0px 6px 6px;border-radius: 0px 0px 6px 6px}
|
||||
.chat_box .chat_editor_box .send_btns {margin:5px}
|
||||
.chat_box .chat_heading {-webkit-box-shadow: inset 0px 1px 0px 0px #fefefe;box-shadow: inset 0px 1px 0px 0px #fefefe;font-size:12px;font-weight:700;color:#444;padding:6px 12px;font-size:13px;height:21px;line-height:22px;background:#f4f4f4;border-bottom:1px solid #ddd;-webkit-border-radius: 6px 6px 0px 0px;border-radius: 6px 6px 0px 0px}
|
||||
.chat_box .chat_heading .chat_close {opacity:.8;cursor:pointer}
|
||||
.chat_box .msg_window {height:300px;overflow-y:auto;margin:5px 10px}
|
||||
.chat_box .chat_msg {margin:10px 5px}
|
||||
.chat_box .chat_msg .chat_msg_heading {font-size:11px;padding:0 5px}
|
||||
.chat_box .chat_msg .chat_msg_body {padding:4px 8px;border:1px solid #ddd;background:#fafafa;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.chat_box .chat_msg .chat_msg_date {float:right}
|
||||
.chat_box .chat_msg .chat_user_name {color:#CC333F;font-weight:700}
|
||||
.chat_box .chat_msg p {margin:0}
|
||||
.chat_box .chat_sidebar {border:1px solid #ddd;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.chat_box .chat_sidebar .chat_user_list {margin:0}
|
||||
.chat_box .chat_sidebar .chat_user_list li {list-style:none;border-bottom:1px solid #e6e6e6;overflow:hidden}
|
||||
.chat_box .chat_sidebar .chat_user_list li:last-child {border:none}
|
||||
.chat_box .chat_sidebar .chat_user_list li input {float:left;margin:15px 0 0 6px}
|
||||
.chat_box .chat_sidebar .chat_user_list li a {display:block;margin-left:16px;padding:5px 20px 5px 12px;line-height:32px}
|
||||
.chat_box .chat_sidebar .chat_user_list li a:hover {text-decoration:none}
|
||||
.chat_box .chat_sidebar .chat_user_list li img {vertical-align:top;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;margin-right:5px;border:1px solid #ddd}
|
||||
.chat_box .chat_sidebar .chat_user_list li.online a {background: url(../img/bullet_green.png) no-repeat 98% center}
|
||||
.chat_box .chat_sidebar .chat_user_list li.offline a {background: url(../img/bullet_red.png) no-repeat 98% center;cursor:default}
|
||||
.chat_box .chat_sidebar .chat_user_list li.active {background-color:#ffffef}
|
||||
.chat_box .chat_sidebar .chat_user_list li a span {color:#888;font-size:11px}
|
||||
|
||||
/* Calculator */
|
||||
#calc {padding:10px 0 0}
|
||||
#calc input.btn {width:44px;text-align:center}
|
||||
#calc .control-group {padding-left:12px}
|
||||
|
||||
/* vcard */
|
||||
.vcard .thumbnail {float:left}
|
||||
.vcard > ul {list-style:none;margin:10px 0 0 120px;overflow:hidden}
|
||||
.vcard > ul > li:first-child {border-top:1px dashed #dcdcdc}
|
||||
.vcard > ul > li {padding:8px;border-bottom:1px dashed #dcdcdc;overflow:hidden}
|
||||
.vcard .item-key {float:left;color:#888}
|
||||
.vcard .vcard-item {margin-left:120px}
|
||||
.vcard .v-heading {background:#F0F9FF;font-weight:700}
|
||||
.vcard .v-heading span {font-weight:100;font-size:11px;color:#666}
|
||||
.vcard .item-list-more,.vcard .thumbnail.item-list-more {display:none}
|
||||
|
||||
|
||||
/* sidebar scroll */
|
||||
.antiScroll{display:inline-block;position:relative;overflow:hidden}
|
||||
.antiscroll-scrollbar{background:#bbb;background:rgba(0,0,0,0.5);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;-webkit-box-shadow:0 0 1px #fff;-moz-box-shadow:0 0 1px #fff;box-shadow:0 0 1px #fff;position:absolute;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:linear 300ms opacity;-moz-transition:linear 300ms opacity;-o-transition:linear 300ms opacity}
|
||||
.antiscroll-scrollbar-shown{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)}
|
||||
.antiscroll-scrollbar-horizontal{height:7px;margin-left:2px;bottom:2px;left:0}
|
||||
.antiscroll-scrollbar-vertical{width:7px;margin:2px 0;left:2px;top:0}
|
||||
.antiscroll-inner{overflow-y:scroll}
|
||||
.antiScroll,.antiscroll-content,.antiscroll-inner{width:240px}
|
||||
.antiscroll-inner::-webkit-scrollbar,.antiscroll-inner::scrollbar{width:0;height:0}
|
||||
|
||||
/* document view */
|
||||
.doc_view {border:1px solid #ddd;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;margin-bottom:10px}
|
||||
.doc_view .doc_view_header dl {margin-bottom:0;-webkit-background-clip:border;-moz-background-clip:border-box;background-clip:border-box;background-color:#f8f8f8;padding:10px 10px 6px;margin-top:0;border-bottom:1px solid #ddd;-webkit-border-radius: 6px 6px 0 0;-moz-border-radius: 6px 6px 0 0;-ms-border-radius: 6px 6px 0 0;border-radius: 6px 6px 0 0}
|
||||
.doc_view .doc_view_header dd {margin-bottom:4px}
|
||||
.doc_view .doc_view_header dd,.doc_view .doc_view_header dt {line-height:20px}
|
||||
.doc_view .doc_view_content {padding:20px}
|
||||
.doc_view .doc_view_footer {line-height:28px;-webkit-background-clip:border;-moz-background-clip:border-box;background-clip:border-box;background-color:#f8f8f8;padding:8px 20px;border-top:1px solid #ddd;-webkit-border-radius: 0 0 6px 6px;-moz-border-radius: 0 0 6px 6px;-ms-border-radius: 0 0 6px 6px;border-radius: 0 0 6px 6px}
|
||||
|
||||
/* sortable elements */
|
||||
.ui-sortable-placeholder { border: 2px dashed #aaa;background:transparent;visibility: visible !important; height: 40px !important;margin-bottom:20px}
|
||||
.ui-sortable-helper {z-index:2100 !important}
|
||||
.ui-sortable-placeholder * { visibility: hidden; }
|
||||
.ui-sortable {min-height:40px !important}
|
||||
.ui-sortable .w-box-header {cursor:move}
|
||||
.sort-disabled .w-box-header {cursor:default}
|
||||
.sort_ph {background:#f8f8f8}
|
||||
|
||||
/* submenus */
|
||||
|
||||
.caret-right {display: inline-block;position:absolute;top: 8px;right: 10px;width: 0;height: 0;vertical-align: top;border-left: 4px solid #000;border-top: 4px solid transparent;border-bottom: 4px solid transparent;content: "";opacity: 0.6;filter: alpha(opacity=60)}
|
||||
.dropdown-menu .sub-menu {left: 100%;position: absolute;top: 0;visibility: hidden;margin-top: -1px}
|
||||
.dropdown-menu li {position:relative}
|
||||
.dropdown-menu .sub-open {visibility: visible;display: block}
|
||||
.navbar .sub-menu:before {border-bottom: 7px solid transparent;border-left: none;border-right: 7px solid rgba(0, 0, 0, 0.2);border-top: 7px solid transparent;left: -7px;top: 5px}
|
||||
.navbar .sub-menu:after {
|
||||
border-top: 6px solid transparent;
|
||||
border-left: none;
|
||||
border-right: 6px solid #fff;
|
||||
border-bottom: 6px solid transparent;
|
||||
left: 10px;
|
||||
top: 6px;
|
||||
left: -6px;
|
||||
}
|
||||
|
||||
.sub-dropdown > a:hover .caret-right, .sub-dropdown.active > a .caret-right, .sub-dropdown.active > a:hover .caret-right {border-left: 4px solid #fff;opacity:1;filter: alpha(opacity=100);}
|
||||
.navHover .dropdown-menu {display:block}
|
||||
.navHover > a:after {display:block;width:100%;content:'';height:2px;position:absolute;bottom:-3px}
|
||||
|
||||
/* blog */
|
||||
.blog_content .toolbar { border-width: 1px 0; border-style: dashed; border-color: #ddd; margin-bottom: 10px; padding: 4px 0; }
|
||||
.blog_content .toolbar-icons a { display: block; padding: 2px 4px; background: #777; margin-right: 4px; float: left; }
|
||||
.blog_content .toolbar .toolbar_text { font-size: 12px; line-height: 24px; padding: 0 5px; }
|
||||
.blog_content { padding: 10px }
|
||||
.blog_content .blog_item + .blog_item { margin-top: 30px }
|
||||
.blog_content .blog_item + .pagination { margin-top: 40px }
|
||||
.blog_content h1 { font-size: 26px; font-family: "PT Sans",sans-serif; font-weight: 300; margin-bottom: 10px; }
|
||||
.blog_content .media + p { margin-top: 10px }
|
||||
.blog_content .toolbar { padding: 4px; margin-bottom: 20px; }
|
||||
|
||||
/* to top */
|
||||
#toTop{display:none;text-decoration:none;position:fixed;bottom:10px;right:0;overflow:hidden;width:29px;height:32px;border:none;text-indent:100%;background:url(../img/ui.totop.png) no-repeat 0 0}
|
||||
#toTopHover{background:url(../img/ui.totop.png) no-repeat 0 -32px;width:29px;height:32px;display:block;overflow:hidden;float:left;opacity:0;-moz-opacity:0;filter:alpha(opacity=0)}
|
||||
#toTop:active,#toTop:focus{outline:none}
|
||||
|
||||
/* backgrounds */
|
||||
.ptrn_a .main_content {background-image: url(../img/bg_a.png)}
|
||||
.ptrn_b .main_content {background-image: url(../img/bg_b.png)}
|
||||
.ptrn_c .main_content {background-image: url(../img/bg_c.png)}
|
||||
.ptrn_d .main_content {background-image: url(../img/bg_d.png)}
|
||||
.ptrn_e .main_content {background-image: url(../img/bg_e.png)}
|
||||
|
||||
/* Style switcher */
|
||||
.ssw_trigger{position:fixed;top:62px;right:-1px;z-index:1001;text-decoration: none;font-size: 12px;color:#fff;width:15px;padding: 2px 3px;background:#333;display: block;-webkit-border-top-left-radius: 8px;-webkit-border-bottom-left-radius: 8px;-moz-border-radius-topleft: 8px;-moz-border-radius-bottomleft: 8px;border-top-left-radius: 8px;border-bottom-left-radius: 8px;border:1px solid transparent}
|
||||
.ssw_trigger.active {border-color:#555}
|
||||
.style_switcher {font-size:12px;z-index:1000;position:fixed;top:54px;right:0;display:none;background:#000;background: rgba(0,0,0,.8);border:1px solid #111;width: 180px;height: auto;padding: 30px 30px 30px 50px;color:#f5f5f5}
|
||||
.style_switcher p {margin:0 0 6px;font-weight:700}
|
||||
.style_item {display:block;margin-right:6px;height:20px;width:20px;border:2px solid #fff;float:left;text-indent:-9999px}
|
||||
.style_switcher .ptrn_def {background: #fff }
|
||||
|
||||
.style_switcher .ssw_ptrn_a {background: #fff url(../img/bg_a.png)}
|
||||
.style_switcher .ssw_ptrn_b {background: #fff url(../img/bg_b.png)}
|
||||
.style_switcher .ssw_ptrn_c {background: #fff url(../img/bg_c.png)}
|
||||
.style_switcher .ssw_ptrn_d {background: #fff url(../img/bg_d.png)}
|
||||
.style_switcher .ssw_ptrn_e {background: #fff url(../img/bg_e.png)}
|
||||
|
||||
.style_switcher .dark_theme {background:#000}
|
||||
.style_switcher .blue_theme {background:#067ead}
|
||||
.style_switcher .brown_theme {background:#b47f44}
|
||||
.style_switcher .green_theme {background:#8da452}
|
||||
.style_switcher .eastern_blue_theme {background:#1294af}
|
||||
.style_switcher .tamarillo_theme {background:#af2c36}
|
||||
.style_active {border-color:#6fd05b}
|
||||
.style_switcher label {color:#fff}
|
||||
|
||||
/* jquery 1.8, bootstrap 2.1 */
|
||||
body {font-size:13px;line-height:18px}
|
||||
h1, h2, h3, h4, h5, h6 {margin:0}
|
||||
h3 {line-height:27px;font-size:18px}
|
||||
label, input, button, select, textarea,
|
||||
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input,
|
||||
.btn {font-size:13px}
|
||||
.navbar .nav > li > a {text-shadow:none;padding:9px 10px 11px}
|
||||
.navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle {background:none;color:#fff}
|
||||
.navbar .nav li.dropdown .dropdown-toggle .caret, .navbar .nav li.dropdown.open .caret,
|
||||
.navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {border-bottom-color: #fff !important;border-top-color: #fff !important}
|
||||
.nav .dropdown-toggle:hover .caret {opacity: 1;filter: alpha(opacity=100)}
|
||||
|
||||
/* editable elements */
|
||||
.editable-input .datepicker table tr td, .editable-input .datepicker table tr th {background:transparent}
|
||||
|
||||
/* invoice */
|
||||
.invoice_heading {font-size:32px;font-family: "PT Sans",sans-serif;}
|
||||
td.invoice_tar,th.invoice_tar {text-align:right}
|
||||
|
||||
/* media queries */
|
||||
|
||||
@media (min-width: 980px) {
|
||||
.sidebar {position:fixed;top:40px;left:0;margin-left:0}
|
||||
.navbar-fixed-top .nav-collapse {height:40px !important}
|
||||
.navbar .nav > li > a {padding-top:10px}
|
||||
/* fixed layout */
|
||||
.gebo-fixed {max-width:940px;margin:0 auto}
|
||||
.gebo-fixed header .container-fluid {max-width:940px;margin:0 auto}
|
||||
.gebo-fixed #maincontainer {border-right:1px solid #ccc;border-left:1px solid #ccc}
|
||||
.gebo-fixed .sidebar {left:50%;margin-left:-469px}
|
||||
.gebo-fixed .sidebar_switch {left:50%;margin-left:-250px}
|
||||
.gebo-fixed.sidebar_hidden .sidebar_switch {margin-left:-465px;left:50%}
|
||||
.gebo-fixed .search_page .box_view .search_item {width:48%;height:210px;margin:0 0 2% 2%}
|
||||
.gebo-fixed .activeMediaTable th.optional,.gebo-fixed .activeMediaTable td.optional{display:none}
|
||||
.gebo-fixed .brand {width:120px}
|
||||
|
||||
.sidebar_right #maincontainer {background-image: url(../img/main_bg_right.gif);background-position: right 0 }
|
||||
.sidebar_right .sidebar {left:auto;right:-1px}
|
||||
.sidebar_right .sidebar_switch {left:auto;right:6px}
|
||||
.sidebar_right .main_content {margin-right:240px;margin-left:0;border-left:none}
|
||||
.sidebar_right.sidebar_hidden #maincontainer {background: #fff}
|
||||
.sidebar_right.sidebar_hidden .main_content {margin:0}
|
||||
|
||||
.gebo-fixed.sidebar_right .sidebar {left:auto;right:50%;margin-left:0;margin-right:-470px}
|
||||
.gebo-fixed.sidebar_right .sidebar_switch {left:auto;right:50%;margin-left:0;margin-right:-465px}
|
||||
.gebo-fixed.sidebar_hidden.sidebar_right .sidebar_switch {laeft:auto;margin-left:0;margin-right:-465px;right:50%}
|
||||
.selectnav {display:none}
|
||||
}
|
||||
|
||||
@media (max-width: 1279px) {
|
||||
.search_page .box_view .search_item {width:49%}
|
||||
}
|
||||
|
||||
@media (max-width: 979px) {
|
||||
#maincontainer {background: #fff}
|
||||
.row > [class*="span"],.navbar-fixed-top {margin:0 !important}
|
||||
.navbar-fixed-top .container-fluid {padding:0 !important}
|
||||
.navbar .brand {width:auto;line-height:18px;margin:3px 0 6px 34px}
|
||||
.navbar .user_menu {padding-top:5px}
|
||||
.navbar .user_menu .dropdown-menu {margin:8px 10px 0 0}
|
||||
.navbar .user_menu > li > a {padding:0 10px 0 0}
|
||||
.navbar-inner {position:relative;z-index:990;min-height:28px}
|
||||
.nav-collapse a {color:#fff !important}
|
||||
.nav-collapse .dropdown-menu li {padding:0}
|
||||
.nav-collapse .dropdown-menu li a {font-weight:400}
|
||||
.nav-collapse .sub-menu {display:block;left:0;right:auto;position:relative;visibility:visible}
|
||||
.nav-collapse .caret-right {display:none}
|
||||
.btn-navbar {margin-top:2px !important;padding:2px 8px !important}
|
||||
.user_menu .dropdown {margin-left:10px}
|
||||
.main_content {margin:0 !important;border:none !important;padding:28px 14px 20px}
|
||||
.main_content .row-fluid + .row-fluid {margin-top:20px}
|
||||
.sidebar {height: 400px;position:absolute;top:39px;left:0;background:#f1f1f1;border-width:0 1px;border-style:solid;border-color:#ccc;margin:0;-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.2);-moz-box-shadow: 1px 1px 4px rgba(0,0,0,0.2);box-shadow: 1px 1px 4px rgba(0,0,0,0.2);z-index:1000;-webkit-border-radius: 0px 5px 5px 0px;border-radius: 0px 5px 5px 0px}
|
||||
.sidebar:after {border-bottom: 6px solid #fff;border-left: 6px solid transparent;border-right: 6px solid transparent;content: "";display: inline-block;left: 15px;position: absolute;top: -6px}
|
||||
.sidebar_hidden .sidebar {border:none}
|
||||
.sidebar_switch {position:absolute;z-index:1000;left:5px !important;top:14px;padding:0 10px}
|
||||
.off_switch {background-position:center 1px}
|
||||
.on_switch {background-position:center -17px}
|
||||
.sidebar_inner {padding-bottom:0 !important}
|
||||
div.sticky-queue {z-index:10000;top:0}
|
||||
.btn_menu {display:block;clear:both;padding:8px 0 6px;border-top:1px solid rgba(255,255,255,.2);box-shadow: 0 -1px 0 rgba(0,0,0,.2);text-align:center;position:relative;top:4px;cursor:pointer}
|
||||
.btn_menu span {opacity:.8}
|
||||
.ssw_trigger {display:none}
|
||||
#mobile-nav {display:none}
|
||||
.selectnav {margin-left:20px;margin-bottom:0}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.row-fluid > [class*="span"] + [class*="span"] {margin-top:20px}
|
||||
.row-fluid input[class*="span"],.row-fluid textarea[class*="span"],.row-fluid select[class*="span"] {width:80%}
|
||||
.input-prepend, .input-append {margin-bottom:10px}
|
||||
form .row-fluid > [class*="span"] + [class*="span"] {margin-top:0}
|
||||
.login_page .content_b {margin: 0 20px}
|
||||
.search_page .box_view .search_item {width:99%;margin-bottom:3%}
|
||||
.error_page .error_box {background:none;width:100%}
|
||||
.error_page .error_box h1 {padding:40px 20px 0}
|
||||
.error_page .error_box p {margin:0 20px 10px}
|
||||
.error_page .error_box .back_link {margin:0 20px}
|
||||
.style_switcher {display:none}
|
||||
.dshb_icoNav {text-align:center}
|
||||
.dshb_icoNav li {float:none;display:inline-block}
|
||||
#cboxContent .video-js {width:100% !important;height:100% !important}
|
||||
.vcard > .thumbnail {display:none}
|
||||
.vcard > ul {margin:0}
|
||||
.item-list .thumbnail {float:none;display:inline-block;margin:0 10px 10px 0}
|
||||
.navbar .nav.pull-right {float:right}
|
||||
.selectnav {margin:5px auto 0;display:block;clear:both}
|
||||
.dataTables_wrapper table + .row > div {text-align:left}
|
||||
.dataTables_wrapper table + .row > div + div,.dataTables_wrapper .dataTables_scroll + .row > div + div {padding-top:10px}
|
||||
.dataTables_wrapper table + .row .dataTables_info {padding-top:0}
|
||||
.dataTables_wrapper table + .row .dataTables_info {padding-top:0}
|
||||
.dataTables_wrapper table + .row .dataTables_paginate,.dataTables_wrapper .dataTables_scroll + .row .dataTables_paginate {float:none}
|
||||
div.dataTables_filter {text-align:left}
|
||||
div.DTTT.btn-group {margin-bottom:5px}
|
||||
.col_vis_menu {float:left}
|
||||
.dataTables_wrapper {overflow-x:auto;padding-bottom:10px}
|
||||
.blog_content .media > a { float:none;margin-bottom:10px;display:block;margin-left:0 }
|
||||
}
|
||||
|
||||
@media (max-width: 479px) {
|
||||
.login_page .login_box {width:100%}
|
||||
.login_page .cnt_b {padding:20px 0;width:68%;margin:0 auto}
|
||||
.-list-container {height:300px}
|
||||
.ov_boxes li {padding:0 2px}
|
||||
.navbar .nav.pull-right {float:left;clear:both}
|
||||
.selectnav {display:inline-block}
|
||||
}
|
||||
|
||||
@media (min-width: 1681px) {
|
||||
body {max-width:1680px;margin:0 auto}
|
||||
header .container-fluid {max-width:1640px;margin:0 auto}
|
||||
#maincontainer {border-right:1px solid #ccc;border-left:1px solid #ccc}
|
||||
.main_content {border-left:none}
|
||||
.sidebar {left:50%;margin-left:-839px}
|
||||
.sidebar_switch {left:50%;margin-left:-620px}
|
||||
.sidebar_hidden .sidebar_switch {margin-left:-832px;left:50%}
|
||||
.sidebar_right .sidebar {right:50%;margin-left:0;margin-right:-840px}
|
||||
.sidebar_right .sidebar_switch {left:auto;right:50%;margin-left:0;margin-right:-836px}
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
/* ---- Gebo Admin tamarillo theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #af2c36;
|
||||
background: -moz-linear-gradient(top, #af2c36 0%, #791e25 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#af2c36), color-stop(100%,#791e25));
|
||||
background: -webkit-linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
background: -o-linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
background: -ms-linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
background: linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#af2c36', endColorstr='#791e25',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #f4d4d7;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #94252e !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#791e25;
|
||||
border-right-color:#bd2f3a;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #94252e !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #94252e !important;
|
||||
border-color:#94252e !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#f6eeef !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#ead8da !important}
|
||||
@ -1,179 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="login_page">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>DHTMLX Method Design 2014-12-09 by Culunvb</title>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap-responsive.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/blue.css" />
|
||||
<link rel="stylesheet" href="modules/lib/qtip2/jquery.qtip.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/style.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link href='modules/css/font.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login_box">
|
||||
<form action="?D.H.T.M.L.X" method="post" id="flogin">
|
||||
<input type="hidden" id="option" name="option" value="r/log"/>
|
||||
<div class="top_b">D.H.T.M.L.x Designer</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Clear username and password field to see validation.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span>
|
||||
<input type="text" id="txtuser" name="txtuser" placeholder="Username" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span>
|
||||
<input type="password" id="txtpass" name="txtpass" placeholder="Password" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow clearfix">
|
||||
<label class="checkbox"><input type="checkbox" /> Remember me</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b clearfix">
|
||||
<button class="btn btn-inverse pull-right" type="submit">Sign In</button>
|
||||
<span class="link_reg"><a href="#reg_form">Not registered? Sign up here</a></span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="pass_form" style="display:none">
|
||||
<div class="top_b">Can't sign in?</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Please enter your email address. You will receive a link to create a new password via email.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow clearfix">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Request New Password</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="reg_form" style="display:none">
|
||||
<div class="top_b">Sign up to Gebo Admin</div>
|
||||
<div class="alert alert-login">
|
||||
By filling in the form bellow and clicking the "Sign Up" button, you accept and agree to <a data-toggle="modal" href="#terms">Terms of Service</a>.
|
||||
</div>
|
||||
<div id="terms" class="modal hide fade" style="display:none">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3>Terms and Conditions</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
Nulla sollicitudin pulvinar enim, vitae mattis velit venenatis vel. Nullam dapibus est quis lacus tristique consectetur. Morbi posuere vestibulum neque, quis dictum odio facilisis placerat. Sed vel diam ultricies tortor egestas vulputate. Aliquam lobortis felis at ligula elementum volutpat. Ut accumsan sollicitudin neque vitae bibendum. Suspendisse id ullamcorper tellus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum at augue lorem, at sagittis dolor. Curabitur lobortis justo ut urna gravida scelerisque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam vitae ligula elit.
|
||||
Pellentesque tincidunt mollis erat ac iaculis. Morbi odio quam, suscipit at sagittis eget, commodo ut justo. Vestibulum auctor nibh id diam placerat dapibus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nunc sed tellus rhoncus consectetur nec quis nunc. Donec ultricies aliquam turpis in rhoncus. Maecenas convallis lorem ut nisl posuere tristique. Suspendisse auctor nibh in velit hendrerit rhoncus. Fusce at libero velit. Integer eleifend sem a orci blandit id condimentum ipsum vehicula. Quisque vehicula erat non diam pellentesque sed volutpat purus congue. Duis feugiat, nisl in scelerisque congue, odio ipsum cursus erat, sit amet blandit risus enim quis ante. Pellentesque sollicitudin consectetur risus, sed rutrum ipsum vulputate id. Sed sed blandit sem. Integer eleifend pretium metus, id mattis lorem tincidunt vitae. Donec aliquam lorem eu odio facilisis eu tempus augue volutpat.
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a data-dismiss="modal" class="btn" href="#">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span><input type="text" placeholder="Username" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span><input type="text" placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
<small>The e-mail address is not made public and will only be used if you wish to receive a new password.</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Sign Up</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="links_b links_btm clearfix">
|
||||
<span class="linkform"><a href="#pass_form">Forgot password?</a></span>
|
||||
<span class="linkform" style="display:none">Never mind, <a href="#login_form">send me back to the sign-in screen</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery-migrate.min.js"></script>
|
||||
<script src="js/jquery.actual.min.js"></script>
|
||||
<script src="lib/validation/jquery.validate.min.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
//* boxes animation
|
||||
form_wrapper = $('.login_box');
|
||||
function boxHeight() {
|
||||
form_wrapper.animate({ marginTop : ( - ( form_wrapper.height() / 2) - 24) },400);
|
||||
};
|
||||
form_wrapper.css({ marginTop : ( - ( form_wrapper.height() / 2) - 24) });
|
||||
$('.linkform a,.link_reg a').on('click',function(e){
|
||||
var target = $(this).attr('href'),
|
||||
target_height = $(target).actual('height');
|
||||
$(form_wrapper).css({
|
||||
'height' : form_wrapper.height()
|
||||
});
|
||||
$(form_wrapper.find('form:visible')).fadeOut(400,function(){
|
||||
form_wrapper.stop().animate({
|
||||
height : target_height,
|
||||
marginTop: ( - (target_height/2) - 24)
|
||||
},500,function(){
|
||||
$(target).fadeIn(400);
|
||||
$('.links_btm .linkform').toggle();
|
||||
$(form_wrapper).css({
|
||||
'height' : ''
|
||||
});
|
||||
});
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
//* validation
|
||||
$('#login_form').validate({
|
||||
onkeyup: false,
|
||||
errorClass: 'error',
|
||||
validClass: 'valid',
|
||||
rules: {
|
||||
username: { required: true, minlength: 3 },
|
||||
password: { required: true, minlength: 3 }
|
||||
},
|
||||
highlight: function(element) {
|
||||
$(element).closest('div').addClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
unhighlight: function(element) {
|
||||
$(element).closest('div').removeClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
errorPlacement: function(error, element) {
|
||||
$(element).closest('div').append(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,179 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="login_page">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>DHTMLX Method Design 2014-12-09 by Culunvb</title>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap-responsive.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/blue.css" />
|
||||
<link rel="stylesheet" href="modules/lib/qtip2/jquery.qtip.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/style.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link href='modules/css/font.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login_box">
|
||||
<form action="?D.H.T.M.L.X" method="post" id="flogin">
|
||||
<input type="hidden" id="option" name="option" value="r/log"/>
|
||||
<div class="top_b">D.H.T.M.L.x Designer</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Clear username and password field to see validation.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span>
|
||||
<input type="text" id="txtuser" name="txtuser" placeholder="Username" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span>
|
||||
<input type="password" id="txtpass" name="txtpass" placeholder="Password" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow clearfix">
|
||||
<label class="checkbox"><input type="checkbox" /> Remember me</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b clearfix">
|
||||
<button class="btn btn-inverse pull-right" type="submit">Sign In</button>
|
||||
<span class="link_reg"><a href="#reg_form">Not registered? Sign up here</a></span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="pass_form" style="display:none">
|
||||
<div class="top_b">Can't sign in?</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Please enter your email address. You will receive a link to create a new password via email.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow clearfix">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Request New Password</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="reg_form" style="display:none">
|
||||
<div class="top_b">Sign up to Gebo Admin</div>
|
||||
<div class="alert alert-login">
|
||||
By filling in the form bellow and clicking the "Sign Up" button, you accept and agree to <a data-toggle="modal" href="#terms">Terms of Service</a>.
|
||||
</div>
|
||||
<div id="terms" class="modal hide fade" style="display:none">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3>Terms and Conditions</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
Nulla sollicitudin pulvinar enim, vitae mattis velit venenatis vel. Nullam dapibus est quis lacus tristique consectetur. Morbi posuere vestibulum neque, quis dictum odio facilisis placerat. Sed vel diam ultricies tortor egestas vulputate. Aliquam lobortis felis at ligula elementum volutpat. Ut accumsan sollicitudin neque vitae bibendum. Suspendisse id ullamcorper tellus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum at augue lorem, at sagittis dolor. Curabitur lobortis justo ut urna gravida scelerisque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam vitae ligula elit.
|
||||
Pellentesque tincidunt mollis erat ac iaculis. Morbi odio quam, suscipit at sagittis eget, commodo ut justo. Vestibulum auctor nibh id diam placerat dapibus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nunc sed tellus rhoncus consectetur nec quis nunc. Donec ultricies aliquam turpis in rhoncus. Maecenas convallis lorem ut nisl posuere tristique. Suspendisse auctor nibh in velit hendrerit rhoncus. Fusce at libero velit. Integer eleifend sem a orci blandit id condimentum ipsum vehicula. Quisque vehicula erat non diam pellentesque sed volutpat purus congue. Duis feugiat, nisl in scelerisque congue, odio ipsum cursus erat, sit amet blandit risus enim quis ante. Pellentesque sollicitudin consectetur risus, sed rutrum ipsum vulputate id. Sed sed blandit sem. Integer eleifend pretium metus, id mattis lorem tincidunt vitae. Donec aliquam lorem eu odio facilisis eu tempus augue volutpat.
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a data-dismiss="modal" class="btn" href="#">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span><input type="text" placeholder="Username" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span><input type="text" placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
<small>The e-mail address is not made public and will only be used if you wish to receive a new password.</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Sign Up</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="links_b links_btm clearfix">
|
||||
<span class="linkform"><a href="#pass_form">Forgot password?</a></span>
|
||||
<span class="linkform" style="display:none">Never mind, <a href="#login_form">send me back to the sign-in screen</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery-migrate.min.js"></script>
|
||||
<script src="js/jquery.actual.min.js"></script>
|
||||
<script src="lib/validation/jquery.validate.min.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
//* boxes animation
|
||||
form_wrapper = $('.login_box');
|
||||
function boxHeight() {
|
||||
form_wrapper.animate({ marginTop : ( - ( form_wrapper.height() / 2) - 24) },400);
|
||||
};
|
||||
form_wrapper.css({ marginTop : ( - ( form_wrapper.height() / 2) - 24) });
|
||||
$('.linkform a,.link_reg a').on('click',function(e){
|
||||
var target = $(this).attr('href'),
|
||||
target_height = $(target).actual('height');
|
||||
$(form_wrapper).css({
|
||||
'height' : form_wrapper.height()
|
||||
});
|
||||
$(form_wrapper.find('form:visible')).fadeOut(400,function(){
|
||||
form_wrapper.stop().animate({
|
||||
height : target_height,
|
||||
marginTop: ( - (target_height/2) - 24)
|
||||
},500,function(){
|
||||
$(target).fadeIn(400);
|
||||
$('.links_btm .linkform').toggle();
|
||||
$(form_wrapper).css({
|
||||
'height' : ''
|
||||
});
|
||||
});
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
//* validation
|
||||
$('#login_form').validate({
|
||||
onkeyup: false,
|
||||
errorClass: 'error',
|
||||
validClass: 'valid',
|
||||
rules: {
|
||||
username: { required: true, minlength: 3 },
|
||||
password: { required: true, minlength: 3 }
|
||||
},
|
||||
highlight: function(element) {
|
||||
$(element).closest('div').addClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
unhighlight: function(element) {
|
||||
$(element).closest('div').removeClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
errorPlacement: function(error, element) {
|
||||
$(element).closest('div').append(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,79 +0,0 @@
|
||||
<?php echo $cllib->HANDLE_VIEWSOURCE(102930);?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="login_page">
|
||||
<head><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<meta charset="utf-8">
|
||||
<?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<title><?=PROJECTID?></title>
|
||||
<?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
|
||||
<link rel="stylesheet" <?php echo $cllib->HANDLE_VIEWSOURCE(10293);?> href="modules/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" <?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>href="modules/bootstrap/css/bootstrap-responsive.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/blue.css" />
|
||||
<link rel="stylesheet" href="modules/lib/qtip2/jquery.qtip.min.css" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<link rel="stylesheet" href="modules/css/style.css" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link href='modules/css/font.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body onContextMenu="return false;"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<?php
|
||||
if(isset($_REQUEST['option']))
|
||||
{
|
||||
if($_REQUEST['option']=='err/400'){echo ERROR400;}
|
||||
if($_REQUEST['option']=='err/401'){echo ERROR401;}
|
||||
if($_REQUEST['option']=='err/402'){echo ERROR402;}
|
||||
if($_REQUEST['option']=='err/403'){echo ERROR403;}
|
||||
}
|
||||
?>
|
||||
|
||||
<div style="background-color: transparent;font-size:18pt;margin:12px 12px;color:#c7c5c5"><?=PROJECTNAME?></div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div style="background-color: transparent;font-size:9pt;margin:-10px 12px;color:#c7c5c5;position: absolute;z-index:9999;"><?=PROJECTDESCRIPTION?></div>
|
||||
<div class="login_box"><?php echo $cllib->HANDLE_VIEWSOURCE(102913);?>
|
||||
<!-- <div id="divlogo" style="position: absolute;z-index:100;margin-top:-45px;margin-left:-90px"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<img src="themes/images/logo.png" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</div>-->
|
||||
<form action="?<?=PROJECTID?>" method="post" id="flogin"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<input type="hidden" id="option" name="option" value="r/log"/><?php echo $cllib->HANDLE_VIEWSOURCE(30293);?>
|
||||
<div class="top_b"><?=PROJECTID." ( ".PROJECTDESCRIPTION." )"?></div><?php echo $cllib->HANDLE_VIEWSOURCE(40293);?>
|
||||
<div style ="width:100%;">
|
||||
<img src="themes/images/tcelbglogin.png" alt="sol image" />
|
||||
</div>
|
||||
|
||||
<div class="cnt_b" style="margin-left:25px;"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="formRow"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<input type="text" id="txtuser" name="txtuser" placeholder="Username" value="" />
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<span class="add-on"><i class="icon-lock"></i></span><?php echo $cllib->HANDLE_VIEWSOURCE(102932);?>
|
||||
<input type="password" id="txtpass" name="txtpass" placeholder="Password" value="" />
|
||||
</div>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="formRow clearfix"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<label class="checkbox"><input type="checkbox" /> Remember me</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b clearfix">
|
||||
<button class="btn btn-inverse pull-right" type="submit">Sign In</button>
|
||||
<span class="link_reg"><a href="#reg_form">Not registered? Sign up here</a></span>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="links_b links_btm clearfix"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<span class="linkform"><a href="#pass_form">Forgot password?</a></span><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<span class="linkform" style="display:none">Never mind, <a href="#login_form">send me back to the sign-in screen</a></span><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</div>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
|
||||
<script <?php echo $cllib->HANDLE_VIEWSOURCE(10293);?> src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery-migrate.min.js"></script><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<script src="js/jquery.actual.min.js"></script><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<script src="lib/validation/jquery.validate.min.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</body><?php echo $cllib->HANDLE_VIEWSOURCE(102933);?>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 620 B |
|
Before Width: | Height: | Size: 932 B |