------------------------------------------------------------
   SPAIZ-NUKE 1.3    D2C-NUKE
------------------------------------------------------------

  2:  ,  

 1,  :
1)   ->
2)   
3)   ,          images
4)    images       (  images   !)
5)      ,   ->


   -),        (   sp-3)
 
      :
 1.      -,  ! ( -   )
 2.    (       )     (/)
 3.  (--------------)  ,      !)
 
-----------------
  :
 function OpenTable()
 {
	echo '<table style="width:100%"><tr><td class="open-table">';
 }

    (   OpenTable):
 <table style="width:100%"><tr><td class="open-table">
 ..     .
-----------------
 ...
  :
 function CloseTable()
 {
    echo '</td></tr></table>';
 }
   :
 </td></tr></table>

    ?  OpenTable2  CloseTable2  
------------------
  ,
 function ModTitle($title)
 {
    OpenTable();
    echo '<center><font class="mod_title"><b>'.$title.'</b></font></center>';
    CloseTable();
 }

   , ..      OpenTable()  CloseTable()    $title,
       -...
 !    ,    ,   {opentable}, {closetable}  {title}
      :
 {opentable}
 <center><font class="mod_title"><b>{title}</b></font></center>
 {closetable}
-------------------
  ...
 function themeheader()
 {
    global $config;
 ?>
 <body>
 <table width="100%" class="topborder2" style="border-right: #C5C8D0 1px solid; border-left: #C5C8D0 1px solid;">
  <tr> 
    <td width=20% height="21" class="toptext1" style="font-weight:bold; text-align:center;"><a href="index.php"><img src="themes/sp-3/images/logo.gif" alt=""></a></td>
    <td width=80%><center>
    <?php
	if($config['banners'])
	{
		banners("up");
	}
	?>
    </center></td>
  </tr>
 </table>
 <table style="width:100%;" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="td_blocks">
      <br>
      <?php echo blocks("left"); ?>
    </td>
    <td style="padding:10px; width:60%; vertical-align: top; COLOR: #444444;">
      <?php
 }

 , -,   -     
       <body>   !
 :
 <table width="100%" class="topborder2" style="border-right: #C5C8D0 1px solid; border-left: #C5C8D0 1px solid;">
  <tr> 
    <td width=20% height="21" class="toptext1" style="font-weight:bold; text-align:center;"><a href="index.php"><img src="themes/sp-3/images/logo.gif" alt=""></a></td>
    <td width=80%><center>
    {banners-up}
    </center></td>
  </tr>
 </table>
 <table style="width:100%;" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="td_blocks">
      <br>
      {left-blocks}
    </td>
    <td style="padding:10px; width:60%; vertical-align: top; COLOR: #444444;">
--------------------
:
function themefooter()
{
    global $config, $copyright;
	?>
	    </td>
	    <td class="td_blocks"><br>
		<?php echo blocks('right'); ?>
	    </td>
	  </tr>
	</table>
	<table width="100%" style="border-top: #C5C8D0 1px solid; border-right: #C5C8D0 1px solid; border-left: #C5C8D0 1px solid;">
	  <tr>
	    <td class="bottomtopfooter"><?php echo $copyright; ?><br>Design by <a href="http://cms.spaiz.net">sPaiz-Group</a></td>
	      </tr>
	      	  <tr>
	      	  <td>
		<?php
		if($config['banners'])
		{
			banners("down");
		}
		?>
			</td>
			</tr>
	</table>
	<?php
}

  ,  - 
 :
</td>
	    <td class="td_blocks"><br>
		{right-blocks}
	    </td>
	  </tr>
	</table>
	<table width="100%" style="border-top: #C5C8D0 1px solid; border-right: #C5C8D0 1px solid; border-left: #C5C8D0 1px solid;">
	  <tr>
	    <td class="bottomtopfooter">{copyright}<br>Design by <a href="http://cms.spaiz.net">sPaiz-Group</a></td>
	      </tr>
	      	  <tr>
	      	  <td>
		{banners-down}
			</td>
			</tr>
	</table>
------------------------
:
function themenewshome ($informant, $datetime, $title, $counter, $topic, $thetext, $morelink, $topicname, $topicimage, $topictext) {
?>
<table width="100%">
  <tr> 
    <td class="theme-news-home-title"><?php echo $title; ?><br><font class="smalltext"><?php echo _M_NEWS3; ?> <a href="modules.php?name=Feedback&to=<?php echo $informant; ?>"><?php echo $informant; ?></a></font></td>
  </tr>
</table>
<table width="100%">
  <tr> 
    <td class="theme-news-home-text"><?php echo $thetext; ?><br><?php echo $morelink; ?></td>
  </tr>
</table>
<?php
}

  (        +   .       ( )):
<table width="100%">
  <tr> 
    <td class="theme-news-home-title">{title}<br><font class="smalltext">: <a href="/modules.php?name=Users&op=ViewProfile&id={author-name}">{author-name}</a></font></td>
  </tr>
</table>
<table width="100%">
  <tr> 
    <td class="theme-news-home-text">{news-text}<br>{more-link}</td>
  </tr>
</table>
--------------------------
 ThemeNewsView  
--------------------------
function themeleftbox($title, $content, $blockimage)
{
	?>
	 <table width="100%" style="border-top: #C5C8D0 1px solid;" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="left_block_title"><?php echo $title; ?></td>
	  </tr>
	  <tr>
		<td colspan="2" class="block_text"><?php echo $content; ?></td>
	  </tr>
	</table>
	<?php
}

  
	 <table width="100%" style="border-top: #C5C8D0 1px solid;" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="left_block_title">{title}</td>
	  </tr>
	  <tr>
		<td colspan="2" class="block_text">{content}</td>
	  </tr>
	</table>

  themerightbox, themecenterbox, thememessagebox
------------------------------
   ,  ThemeNewsComments.php

function ThemeNewsComments($comments_date, $author_email, $author_name, $comments_text)
{
	OpenTable();
	?>
	<center>
	  <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
		<TR>
		<TD style="text-align:left" style="padding:5px;" width="100%">
		<?php echo $author_name.' ['.$author_email.']'; ?></TD>
		</TR>
		<tr>
		<td width="100%" style="padding-left:5px;"><?php echo $comments_text; ?><br>
		<font class="tiny">[<?php echo $comments_date; ?>]</font></td>
		</tr>
	 </table>
	</center>
	<?php
	CloseTable();
}

 (,        ):
( OpenTable()  CloseTable     !)

	<center>
	  <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
		<TR>
		<TD style="text-align:left" style="padding:5px;" width="100%">
		{author-link}</TD>
		</TR>
		<tr>
		<td width="100%" style="padding-left:5px;">{text}<br>
		<font class="tiny">[{date}]</font></td>
		</tr>
	 </table>
	</center>
--------------------------
   :

function ThemeNewsCommemtsForm($author_name, $author_email, $sel)
{
		OpenTable();
?>
  <table border="0" cellpadding="5" cellspacing="1" width="363">
    <tr> 
      <td width="156"><?php echo _M_NEWS8; ?>:</td>
      <td width="184"><input type="text" name="author_name" value="<?php echo $author_name; ?>" size="20" maxlength="20" style="border-width:1pt; border-color:silver; border-style:dashed;"></td>
    </tr>
    <tr> 
      <td width="156"><?php echo _M_NEWS9; ?>:</td>
      <td width="184"><input type="text" name="author_email" value="<?php echo $author_email; ?>" size="20" maxlength="40" style="border-width:1pt; border-color:silver; border-style:dashed;"></td>
    </tr>
    <tr> 
      <td class="row1" valign="top" width="156"> <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr> 
            <td valign="middle" align="center" style="font-family: Verdana, Arial, Helvetica, sans-serif"><br> 
              <table width="100" border="0" cellspacing="0" cellpadding="5" style="background-color:white; border-width:1pt; border-color:silver; border-style:dashed;">
                <tr align="center" valign="middle"> 
                  <td> <a href="javascript:InstaSmilie(':biggrin:')" onClick="AddSmile(' :biggrin: ');"> 
                    <img src="images/smiles/icon_biggrin.gif" border="0" alt="Very Happy" title="Very Happy"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':)')" onClick="AddSmile(' :) ');"> 
                    <img src="images/smiles/icon_smile.gif" border="0" alt="Smile" title="Smile"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':(')" onClick="AddSmile(' :( ');"> 
                    <img src="images/smiles/icon_sad.gif" border="0" alt="Sad" title="Sad"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':surprised:')" onClick="AddSmile(' :surprised: ');"> 
                    <img src="images/smiles/icon_surprised.gif" border="0" alt="Surprised" title="Surprised"></a> 
                  </td>
                </tr>
                <tr align="center" valign="middle"> 
                  <td> <a href="javascript:InstaSmilie(':eek:')" onClick="AddSmile(' :eek: ');"> 
                    <img src="images/smiles/icon_eek.gif" border="0" alt="Shocked" title="Shocked"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':conf:')" onClick="AddSmile(' :conf: ');"> 
                    <img src="images/smiles/icon_confused.gif" border="0" alt="Confused" title="Confused"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':cool:')" onClick="AddSmile(' :cool: ');"> 
                    <img src="images/smiles/icon_cool.gif" border="0" alt="Cool" title="Cool"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':lol:')" onClick="AddSmile(' :lol: ');"> 
                    <img src="images/smiles/icon_lol.gif" border="0" alt="Laughing" title="Laughing"></a> 
                  </td>
                </tr>
                <tr align="center" valign="middle"> 
                  <td> <a href="javascript:InstaSmilie(':mad:')" onClick="AddSmile(' :mad: ');"> 
                    <img src="images/smiles/icon_mad.gif" border="0" alt="Mad" title="Mad"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':razz:')" onClick="AddSmile(' :razz: ');"> 
                    <img src="images/smiles/icon_razz.gif" border="0" alt="Razz" title="Razz"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':oops:')" onClick="AddSmile(' :oops: ');"> 
                    <img src="images/smiles/icon_redface.gif" border="0" alt="Embarassed" title="Embarassed"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':cry:')" onClick="AddSmile(' :cry: ');"> 
                    <img src="images/smiles/icon_cry.gif" border="0" alt="Crying or Very sad" title="Crying or Very sad"></a> 
                  </td>
                </tr>
                <tr align="center" valign="middle"> 
                  <td> <a href="javascript:InstaSmilie(':evil:')" onClick="AddSmile(' :evil: ');"> 
                    <img src="images/smiles/icon_evil.gif" border="0" alt="Evil or Very Mad" title="Evil or Very Mad"></a> 
                  </td>
                  <td><a href="javascript:InstaSmilie(':twisted:')" onClick="AddSmile(' :twisted: ');"> 
                    <img src="images/smiles/icon_twisted.gif" border="0" alt="Twisted Evil" title="Twisted Evil"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':roll:')" onClick="AddSmile(' :roll: ');"> 
                    <img src="images/smiles/icon_rolleyes.gif" border="0" alt="Rolling Eyes" title="Rolling Eyes"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':wink:')" onClick="AddSmile(' :wink: ');"> 
                    <img src="images/smiles/icon_wink.gif" border="0" alt="Wink" title="Wink"></a> 
                  </td>
                </tr>
                <tr align="center" valign="middle"> 
                  <td> <a href="javascript:InstaSmilie(':ex:')" onClick="AddSmile(' :ex: ');"> 
                    <img src="images/smiles/icon_exclaim.gif" border="0" alt="Exclamation" title="Exclamation"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':quest:')" onClick="AddSmile(' :quest: ');"> 
                    <img src="images/smiles/icon_question.gif" border="0" alt="Question" title="Question"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':idea:')" onClick="AddSmile(' :idea: ');"> 
                    <img src="images/smiles/icon_idea.gif" border="0" alt="Idea" title="Idea"></a> 
                  </td>
                  <td> <a href="javascript:InstaSmilie(':arr:')" onClick="AddSmile(' :arr: ');"> 
                    <img src="images/smiles/icon_arrow.gif" border="0" alt="Arrow" title="Arrow"></a> 
                  </td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      <td class="row2" valign="top" width="184"> <table border="0" cellspacing="0" cellpadding="2">
          <td colspan="4"> <textarea name="comments_text" rows="10" cols="50" wrap="virtual" style="border-width:1pt; border-color:silver; border-style:dashed;"></textarea> 
          </td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td align="center" height="28" width="156"><input type="submit" name="op" value="<?php echo _M_NEWS10; ?>">
        </td>
      <td align="center" height="28" width="184"> <p align="left"> 
          <input type="checkbox" name="remember" value="1" style="float: left" <?php echo $sel; ?>>
          <?php echo _M_NEWS11; ?></td>
    </tr>
  </table>
<?php
	CloseTable();
}

   : 1)     ,    ""  2)      
3) OpenTable()  CloseTable      4)  <textarea>  </textarea> 
 {text},       

:

  <table border="0" cellpadding="5" cellspacing="1" width="363">
    
    <tr> 
      <td class="row1" valign="top" width="156"> <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr> 
            <td valign="middle" align="center" style="font-family: Verdana, Arial, Helvetica, sans-serif"><br> 
              {smiles}</td>
          </tr>
        </table></td>
      <td class="row2" valign="top" width="184"> <table border="0" cellspacing="0" cellpadding="2">
          <td colspan="4"> <textarea name="comments_text" rows="10" cols="50" wrap="virtual" style="border-width:1pt; border-color:silver; border-style:dashed;">
		{text}
		</textarea> 
          </td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td align="center" height="28" width="156">{submit}
        </td>
      <td align="center" height="28" width="184"> </td>
    </tr>
  </table>
---------------------------
   , ,        
 " ()", "", " -", " ", ""  "  "
(   ,          )

" ()" -     ,   )
"" -      ,    
" -"," " -    ,      
 (      ,     AddSmile , . )
"" -  ,  style.css    
"  " -    banned.php
------------------------------

   , ,        ,  
      ,     ,     {} 


 2),  :
    ,     template.tpl      
<<<HTML  HTML;

!
