Location: PHPKode > scripts > EasyTemplate > easytemplate/docs/manual.html
<html dir="rtl">
<head>
<title>Ïáíá ÅÓÊÎÏÇã ÇáÞÇáÈ ÇáÓåá</title>

<style>
body{
	color:              #000000;
	background-color:   #ffffff;
	margin:             0;
	padding:            0;
}
.header{
	color:              #ffffff;
	background-color:   #009900;
	font-size:          16pt;
	padding:            10px;
	border-bottom: 2px solid #006600;
}
.content{
	font-size:          16pt;
	padding:            5px;
	border-bottom: 2px solid #006600;
}
</style>

</head>
<body>
<div class="header">Ïáíá ÅÓÊÎÏÇã ÇáÞÇáÈ ÇáÓåá</div>
<div class="content">


<h2>̋臃:</h2>
<ul>
	<li> <a href="#Variables">ÇáãÊÛíÑÇÊ</a></li>
	<li> <a href="#Variablesloop">ÇáãÊÛíÑÇÊ ÏÇÎá ÇáÍáÞÉ</a></li>
	<li> <a href="#loop">ÇáÍáÞÉ</a></li>
	<li> <a href="#looplimit">ÊÚÏÏ ÇáÕÝÍÇÊ Ýí ÇáÍáÞÉ</a></li>
	<li> <a href="#if">ÇáÌãáÉ ÇáÔÑØíÉ ÅÐÇ</a></li>
	<li> <a href="#ifloop">ÇáÌãáÉ ÇáÔÑØíÉ ÏÇÎá ÇáÍáÞÉ</a></li>
	<li> <a href="#else">ÅÓÊËäÇÁ ÇáÌãáÉ ÇáÔÑØíÉ</a></li>
	<li> <a href="#include">ÅÓÊíÑÇÏ ãáÝ</a></li>
	<li> <a href="#switch">ÌãáÉ ÇáÊÈÏíá</a></li>
	<li> <a href="#assing">ÅÓäÇÏ ÇáãÊÛíÑÇÊ</a></li>
	<li> <a href="#color">ÊÈÏíá ÇáÃáæÇä</a></li>
</ul>

<a name="Variables"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>Variables</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$name&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;</span><span style="color: rgb(221, 0, 0);">"daifallah"</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">$web</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(221, 0, 0);">"mail"</span><span style="color: rgb(0, 119, 0);">]&nbsp;=&nbsp;</span><span style="color: rgb(221, 0, 0);">"d4d#hotmail.com"</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">$web</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(221, 0, 0);">"site"</span><span style="color: rgb(0, 119, 0);">]&nbsp;=&nbsp;</span><span style="color: rgb(221, 0, 0);">"www.daif.net"</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>My&nbsp;Name&nbsp;Is&nbsp;</span><span style="color: rgb(0, 119, 0);">{</span><span style="color: rgb(0, 0, 187);">name</span><span style="color: rgb(0, 119, 0);">}&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">My&nbsp;Email&nbsp;Is&nbsp;</span><span style="color: rgb(0, 119, 0);">{</span><span style="color: rgb(0, 0, 187);">web</span><span style="color: rgb(0, 119, 0);">.</span><span style="color: rgb(0, 0, 187);">mail</span><span style="color: rgb(0, 119, 0);">}&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">My&nbsp;webSite&nbsp;Is&nbsp;</span><span style="color: rgb(0, 119, 0);">{</span><span style="color: rgb(0, 0, 187);">web</span><span style="color: rgb(0, 119, 0);">.</span><span style="color: rgb(0, 0, 187);">site</span><span style="color: rgb(0, 119, 0);">}&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>My&nbsp;name&nbsp;Is&nbsp;daifallah</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">My&nbsp;Email&nbsp;Is&nbsp;d4d</span><span style="color: rgb(255, 128, 0);">#hotmail.com&lt;br&nbsp;/&gt;<br></span><span style="color: rgb(0, 0, 187);">My&nbsp;webSite&nbsp;Is&nbsp;www</span><span style="color: rgb(0, 119, 0);">.</span><span style="color: rgb(0, 0, 187);">daif</span><span style="color: rgb(0, 119, 0);">.</span><span style="color: rgb(0, 0, 187);">net</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="Variablesloop"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>Variables In LOOP</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$students</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"Omer"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">$students</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"Sami"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">$students</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"Ahmad"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">LOOP&nbsp;NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"students"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">Student&nbsp;Name</span><span style="color: rgb(0, 119, 0);">:&nbsp;{{</span><span style="color: rgb(0, 0, 187);">name</span><span style="color: rgb(0, 119, 0);">}}&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br>&lt;/</span><span style="color: rgb(0, 0, 187);">LOOP</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>Student&nbsp;Name</span><span style="color: rgb(0, 119, 0);">:&nbsp;</span><span style="color: rgb(0, 0, 187);">Omer</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">Student&nbsp;Name</span><span style="color: rgb(0, 119, 0);">:&nbsp;</span><span style="color: rgb(0, 0, 187);">Sami</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">Student&nbsp;Name</span><span style="color: rgb(0, 119, 0);">:&nbsp;</span><span style="color: rgb(0, 0, 187);">Ahmad</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>
<br>
<a name="loop"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>LOOP</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">LOOP&nbsp;NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"arr"</span><span style="color: rgb(0, 119, 0);">&gt;<br>{{</span><span style="color: rgb(0, 0, 187);">i</span><span style="color: rgb(0, 119, 0);">}}&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br>&lt;/</span><span style="color: rgb(0, 0, 187);">LOOP<br>?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>0</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">1</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">2</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="looplimit"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>LOOP LIMIT</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"i"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(0, 0, 187);">$i</span><span style="color: rgb(0, 119, 0);">++);<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">LOOP&nbsp;NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"arr"&nbsp;</span><span style="color: rgb(0, 0, 187);">LIMIT</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"3"</span><span style="color: rgb(0, 119, 0);">&gt;<br>{{</span><span style="color: rgb(0, 0, 187);">i</span><span style="color: rgb(0, 119, 0);">}}&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br>&lt;/</span><span style="color: rgb(0, 0, 187);">LOOP</span><span style="color: rgb(0, 119, 0);">&gt;<br>{</span><span style="color: rgb(0, 0, 187);">arr_paging</span><span style="color: rgb(0, 119, 0);">}<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>0</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">1</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">br&nbsp;</span><span style="color: rgb(0, 119, 0);">/&gt;<br></span><span style="color: rgb(0, 0, 187);">0&nbsp;</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">a&nbsp;href</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"?arr_paging=1"</span><span style="color: rgb(0, 119, 0);">&gt;</span><span style="color: rgb(0, 0, 187);">1</span><span style="color: rgb(0, 119, 0);">&lt;/</span><span style="color: rgb(0, 0, 187);">a</span><span style="color: rgb(0, 119, 0);">&gt;<br>&lt;</span><span style="color: rgb(0, 0, 187);">a&nbsp;href</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"?arr_paging=2"</span><span style="color: rgb(0, 119, 0);">&gt;</span><span style="color: rgb(0, 0, 187);">2</span><span style="color: rgb(0, 119, 0);">&lt;/</span><span style="color: rgb(0, 0, 187);">a</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="if"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>IF</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$login&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;</span><span style="color: rgb(0, 0, 187);">true</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">$admin</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">]&nbsp;=&nbsp;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;IF&nbsp;</span><span style="color: rgb(0, 0, 187);">NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"login"</span><span style="color: rgb(0, 119, 0);">&gt;<br>&nbsp;&lt;IF&nbsp;</span><span style="color: rgb(0, 0, 187);">NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"admin.name=daif"</span><span style="color: rgb(0, 119, 0);">&gt;<br>&nbsp;</span><span style="color: rgb(0, 0, 187);">welcome&nbsp;Admin<br>&nbsp;</span><span style="color: rgb(0, 119, 0);">&lt;/IF&gt;<br>&lt;/IF&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>&nbsp;welcome&nbsp;Admin<br>?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="ifloop"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>IF LOOP</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$user</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">$user</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"Omer"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">LOOP&nbsp;NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"user"</span><span style="color: rgb(0, 119, 0);">&gt;<br>&lt;IF&nbsp;</span><span style="color: rgb(0, 0, 187);">LOOP</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"name=daif"</span><span style="color: rgb(0, 119, 0);">&gt;<br>&nbsp;</span><span style="color: rgb(0, 0, 187);">welcome&nbsp;Admin<br></span><span style="color: rgb(0, 119, 0);">&lt;/IF&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>&nbsp;welcome&nbsp;Admin<br>?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="ifelse"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>IF ELSE</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$login&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;</span><span style="color: rgb(0, 0, 187);">true</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;IF&nbsp;</span><span style="color: rgb(0, 0, 187);">NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"login"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">Hello&nbsp;User<br></span><span style="color: rgb(0, 119, 0);">&lt;ELSE&gt;<br></span><span style="color: rgb(0, 0, 187);">Signin&nbsp;Please<br></span><span style="color: rgb(0, 119, 0);">&lt;/IF&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>Hello&nbsp;User<br>?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="include"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>INCLUDE</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(255, 128, 0);">//CODE<br>//CODE<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;INCLUDE&nbsp;</span><span style="color: rgb(0, 0, 187);">NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"FileNameHere.HTML"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>File&nbsp;HTML&nbsp;Content<br>?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="switch"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>SWITCH</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$count&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;</span><span style="color: rgb(0, 0, 187);">2</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;SWITCH&nbsp;</span><span style="color: rgb(0, 0, 187);">NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"count"&nbsp;</span><span style="color: rgb(0, 119, 0);">CASE=</span><span style="color: rgb(221, 0, 0);">"1,2,3"&nbsp;</span><span style="color: rgb(0, 0, 187);">VALUE</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"One,Two,Three"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>Two<br>?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="assign"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>Assign</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$name&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">$easy&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;new&nbsp;</span><span style="color: rgb(0, 0, 187);">EasyTemplate</span><span style="color: rgb(0, 119, 0);">;<br></span><span style="color: rgb(0, 0, 187);">$easy</span><span style="color: rgb(0, 119, 0);">-&gt;</span><span style="color: rgb(0, 0, 187);">assign</span><span style="color: rgb(0, 119, 0);">(</span><span style="color: rgb(221, 0, 0);">"name2"</span><span style="color: rgb(0, 119, 0);">,</span><span style="color: rgb(0, 0, 187);">$name</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">{</span><span style="color: rgb(0, 0, 187);">name</span><span style="color: rgb(0, 119, 0);">}&nbsp;</span><span style="color: rgb(0, 0, 187);">assign&nbsp;To&nbsp;</span><span style="color: rgb(0, 119, 0);">{</span><span style="color: rgb(0, 0, 187);">name2</span><span style="color: rgb(0, 119, 0);">}<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>daif&nbsp;assign&nbsp;to&nbsp;daif<br>?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>

<br>
<a name="color"></a>
<table dir="ltr" border="1" width="100%">
<tbody><tr>
</tr><tr>
<td colspan="3"><b>COLOR|COLOR</b></td>
</tr>
<tr><td>PHP</td>
<td>HTML</td>
<td>RESULT</td>
</tr>
<tr>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">$arr</span><span style="color: rgb(0, 119, 0);">[]&nbsp;=&nbsp;array(</span><span style="color: rgb(221, 0, 0);">"name"</span><span style="color: rgb(0, 119, 0);">=&gt;</span><span style="color: rgb(221, 0, 0);">"daif"</span><span style="color: rgb(0, 119, 0);">);<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br></span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">LOOP&nbsp;NAME</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"arr"</span><span style="color: rgb(0, 119, 0);">&gt;<br>{{</span><span style="color: rgb(0, 0, 187);">name</span><span style="color: rgb(0, 119, 0);">}}&nbsp;&lt;</span><span style="color: rgb(0, 0, 187);">img&nbsp;src</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"aaa.png|bbb.png"</span><span style="color: rgb(0, 119, 0);">&gt;<br>&lt;/</span><span style="color: rgb(0, 0, 187);">LOOP</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
<td><code><span style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 187);">&lt;?<br>daif&nbsp;</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">img&nbsp;src</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"aaa.png"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">daif&nbsp;</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">img&nbsp;src</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"bbb.png"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">daif&nbsp;</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">img&nbsp;src</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"aaa.png"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">daif&nbsp;</span><span style="color: rgb(0, 119, 0);">&lt;</span><span style="color: rgb(0, 0, 187);">img&nbsp;src</span><span style="color: rgb(0, 119, 0);">=</span><span style="color: rgb(221, 0, 0);">"bbb.png"</span><span style="color: rgb(0, 119, 0);">&gt;<br></span><span style="color: rgb(0, 0, 187);">?&gt;</span>
</span>
</code></td>
</tr>
</tbody></table>




</div>
</body>
</html>
Return current item: EasyTemplate