( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
if (empty($element)){
$element = 0;
}
$elementnext = $element+1;
$record =6;
$resultP = $db->getelements($category,$element,$record);
?>
<table width="100%" border="0">
<tr>
<td width="48" align="center" valign="middle"> <?php
if ($element!=0)
{
$elementpre = $element-1;
?>
<a href="indexAlone.php?mode=pimpme&msg_id=<?php echo $msg_idx ?>&step=<?php echo $step ?>&element=<?php echo $elementpre ?>"><img src="images/mycontent_03.png" width="48" height="54" alt=""></a>
<?php }?>
</td>
<td width="718" id="objects">
<table width="718" height="80" border="0" align="left">
<tr>
<?php
while ( list($key,$val)=each($resultP) ) {
$msg_id = stripslashes($val["msg_id"]);
$picture = stripslashes($val["picture"]);
$resizedPhoto ="elements/$picture";
list($w, $h) = getimagesize($resizedPhoto);
$w= 40/100*$w;
$h= 40/100*$h;
?>
<td style="margin:2px;margin-left:10px;margin-bottom:10px;border:#363636 dashed 0px;">
<img id="obj_<?php echo $msg_id ?>" align="left" height="<?php echo $h ?>" width="<?php echo $w ?>" class="obj_item ui-widget-content" src="elements/<?php echo $picture ?>" style=" width:<?php echo $w ?>px;height:<?php echo $h ?>px;cursor:move; "/>
</td>
<?php }?> </tr>
</table>
</td>
<td width="48" align="center" valign="middle"> <?php if (!empty($resultP))
{?>
<a id="submit3"><img src="images/mycontent_04.png" width="41" height="54" alt=""></a>
<form id="jsonform3" action="indexAlone.php?mode=ward&msg_id=<?php echo $msg_idx ?>&step=<?php echo $step ?>&element=<?php echo $elementnext ?>" method="POST">
<input id="jsondata3" name="jsondata3" type="hidden" value="" autocomplete="off"></input>
<input id="photo" name="photo" type="hidden" value="<?php echo $original;?>"></input>
<input type="hidden" id="msg_id" name="msg_id" value="<?php echo $msg_idx ?>" />
<input type="hidden" id="step" name="step" value="<?php echo $step ?>" />
<input type="hidden" id="brand" name="brand" value="watermark.png" />
<input type="hidden" id="step" name="step" value="<?php echo $step ?>" />
<input type="hidden" id="element" name="element" value="<?php echo $elementnext ?>" />
</form>
<?php } ?></td>
</tr>
</table>