Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/look/styles/forum/main/templates/index.html
<br /><br /> <br /><br /><br /><br /> <br /><br />
<br /><br /> <br /><br /><br /><br /> <br /><br />

	{Des::while}{AttachList}
			{if {$AttachList['extension']} == ('jpeg')}
           <fieldset>
{if {$_CONF['info_row']['resize_imagesAllow']} == 1}
<legend>الصور المرفقة المصغرة</legend>
<?php $imgsrc = $PowerBB->_CONF['template']['url'].$PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filepath'];?>
<?php $image = @getimagesize($imgsrc);?>
<?php $default_width = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesW']; ?>
<?php $default_height = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesH']; ?>
<?php if ($image[0] > $default_width || $image[1] > $default_height){ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}" width="{$_CONF['info_row']['default_imagesW']}" height="{$_CONF['info_row']['default_imagesH']}" >
<br />
(أنقر على الصورة لتكبيرها)
</a>
<?php }else{ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
<?php }?>
{else}
<legend>الصور المرفقة</legend>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
{/if}
</fieldset>
           <br />
           {/if}
			{if {$AttachList['extension']} == ('image/pjpeg')}
           <fieldset>
{if {$_CONF['info_row']['resize_imagesAllow']} == 1}
<legend>الصور المرفقة المصغرة</legend>
<?php $imgsrc = $PowerBB->_CONF['template']['url'].$PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filepath'];?>
<?php $image = @getimagesize($imgsrc);?>
<?php $default_width = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesW']; ?>
<?php $default_height = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesH']; ?>
<?php if ($image[0] > $default_width || $image[1] > $default_height){ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}" width="{$_CONF['info_row']['default_imagesW']}" height="{$_CONF['info_row']['default_imagesH']}" >
<br />
(أنقر على الصورة لتكبيرها)
</a>
<?php }else{ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
<?php }?>
{else}
<legend>الصور المرفقة</legend>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
{/if}
</fieldset>
           <br />
           {/if}
{if {$AttachList['extension']} == ('image/x-png')}
           <fieldset>
{if {$_CONF['info_row']['resize_imagesAllow']} == 1}
<legend>الصور المرفقة المصغرة</legend>
<?php $imgsrc = $PowerBB->_CONF['template']['url'].$PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filepath'];?>
<?php $image = @getimagesize($imgsrc);?>
<?php $default_width = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesW']; ?>
<?php $default_height = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesH']; ?>
<?php if ($image[0] > $default_width || $image[1] > $default_height){ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}" width="{$_CONF['info_row']['default_imagesW']}" height="{$_CONF['info_row']['default_imagesH']}" >
<br />
(أنقر على الصورة لتكبيرها)
</a>
<?php }else{ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
<?php }?>
{else}
<legend>الصور المرفقة</legend>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
{/if}
</fieldset>
           <br />
          {/if}
          	{if {$AttachList['extension']} == ('gif')}
           <fieldset>
{if {$_CONF['info_row']['resize_imagesAllow']} == 1}
<legend>الصور المرفقة المصغرة</legend>
<?php $imgsrc = $PowerBB->_CONF['template']['url'].$PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filepath'];?>
<?php $image = @getimagesize($imgsrc);?>
<?php $default_width = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesW']; ?>
<?php $default_height = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesH']; ?>
<?php if ($image[0] > $default_width || $image[1] > $default_height){ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}" width="{$_CONF['info_row']['default_imagesW']}" height="{$_CONF['info_row']['default_imagesH']}" >
<br />
(أنقر على الصورة لتكبيرها)
</a>
<?php }else{ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
<?php }?>
{else}
<legend>الصور المرفقة</legend>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
{/if}
</fieldset>
<br />
          {/if}
          	{if {$AttachList['extension']} == ('png')}
           <fieldset>
{if {$_CONF['info_row']['resize_imagesAllow']} == 1}
<legend>الصور المرفقة المصغرة</legend>
<?php $imgsrc = $PowerBB->_CONF['template']['url'].$PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filepath'];?>
<?php $image = @getimagesize($imgsrc);?>
<?php $default_width = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesW']; ?>
<?php $default_height = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesH']; ?>
<?php if ($image[0] > $default_width || $image[1] > $default_height){ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}" width="{$_CONF['info_row']['default_imagesW']}" height="{$_CONF['info_row']['default_imagesH']}" >
<br />
(أنقر على الصورة لتكبيرها)
</a>
<?php }else{ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
<?php }?>
{else}
<legend>الصور المرفقة</legend>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
{/if}
</fieldset>
 <br />
          {/if}
          	{if {$AttachList['extension']} == ('bmp')}
           <fieldset>
{if {$_CONF['info_row']['resize_imagesAllow']} == 1}
<legend>الصور المرفقة المصغرة</legend>
<?php $imgsrc = $PowerBB->_CONF['template']['url'].$PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filepath'];?>
<?php $image = @getimagesize($imgsrc);?>
<?php $default_width = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesW']; ?>
<?php $default_height = $PowerBB->_CONF['template']['_CONF']['info_row']['default_imagesH']; ?>
<?php if ($image[0] > $default_width || $image[1] > $default_height){ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}" width="{$_CONF['info_row']['default_imagesW']}" height="{$_CONF['info_row']['default_imagesH']}" >
<br />
(أنقر على الصورة لتكبيرها)
</a>
<?php }else{ ?>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
<?php }?>
{else}
<legend>الصور المرفقة</legend>
<a target="_blank" href="{$AttachList['filepath']}"><img border="0" src="{$AttachList['filepath']}"></a>
{/if}
</fieldset>
  <br />
          {/if}
	{/Des::while}


	<table border="0" cellspacing="1" class="border" width="80%" align="center">
	{Des::while}{AttachList}
	<tr align="right">
		<td width="40%" class="row1">
			تحميل المرفق :
		(<a href="index.php?page=download&amp;attach=1&amp;id={$AttachList['id']}">{$AttachList['filename']}</a>)
		</td>
		<td width="30%" class="row1">
			مرات التحميل :
			({$AttachList['visitor']})
		</td>
		<td width="30%" class="row1">
الحجم :
(<?php echo $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filesize'] / 1000; ?>)
KB
	      	     </td>
	</tr>
	{/Des::while}
</table>
<br />
Return current item: PBBoard