      
{assign var="numRows" value=$resAttributeOptions|count|default:''}

<div>
    <div class="grid_table00" id="optionGridVd" style="width:70%;">
	<table width="100%"  border="0" cellspacing="0" cellpadding="0" id="tableElm" class="dragdrop-table-border">
    
    {assign var="attrOptionCount" value="0"}
	 {assign var="attrOptionCountVd" value="0"}
     {if $resWatchVideo|default:''} 
    {foreach from=$resWatchVideo item="video"} 
    {assign var="attrOptionCount" value=$attrOptionCount+1} 
	 {assign var="attrOptionCountVd" value=$attrOptionCountVd+1} 
	{assign var="setIsDelete" value="0"} 
	
    <tr class="attributeOptionRow  saved" id="attributeOptionRow_{$attrOptionCount}">
    
  
  {form->hidden name="no_image_path" value="{$view_images}/thumbnail.gif"} 
	{form->hidden 	name			= "attrOptionsGroup[{$attrOptionCount}][watchvideoDetailID]" 
    				value			= $video.productCategoryID} 		
	
	 {form->hidden 	name			= "attrOptionsGroup[{$attrOptionCount}][is_delete]" 
    				class			= "attributeOptionsRows"
    				value			= $setIsDelete}                     
  	
  
    <td align="center" valign="top">       
        <div style="display: inline-block;" class="thumb-image_{$attrOptionCount}">
{form->upload_image  name="OptionVariantThumb_"|cat:$attrOptionCount path="uploads/watchvideo/thumb/" file="{$video.Image}" form="formAttributeAdd" validate="isImage" error=$language.errValidImage}
  {form->hidden name="attrOptionsGroup[{$attrOptionCount}][hidThumb]" value="uploads/watchvideo/thumb/"|cat: $video.Image}        
       </div> 
    </td>

    </tr>
    
	<tr class="nodrag nodrop">
      
      <th align="center" class="variant_image_vd" valign="middle" width="50%">{$language.lblVideoLink}</th>      
      <th align="left" valign="middle"  width="10%"></th>
      <th align="left" valign="middle"  width="10%"></th>
    </tr>
   
   <tr class="attributeOptionRowVd  saved" id="attributeOptionRowVd_{$attrOptionCountVd}">
 {form->hidden 	name			= "attrOptionsGroupVd[{$attrOptionCountVd}][watchvideoDetailID]" 
    				value			= $video.productCategoryID} 		
	   
{form->hidden 	name			= "attrOptionsGroupVd[{$attrOptionCountVd}][is_delete]" 
    				class			= "attributeOptionsRowsVd"
    				value			= $setIsDelete}                      
  	
  
    <td align="center" valign="top">       
        <div>
{form->textbox 	name			= "videolink_"|cat:$attrOptionCountVd 
    				error_class		= "message_inline_validation"
                    class			= "textbox" 
                    form			= "formAttributeAdd" 
                    value			= $video.videoUrl|default:''|html_entity_decode                    
                    maxlength		= "500" 
                    fieldName		= "videoLink"
                    row				= $attrOptionCountVd}
       </div> 
    </td>
    <td align="center" valign="top">
        
        <iframe width="100" height="100"
src="{$video.videoUrl|default:''}"  frameborder="0" allowfullscreen>
</iframe>
       </td>
    
 <td align="center"  valign="top" width="20">
 {html->anchor rel="attrOptionsGroupVd_{$attrOptionCountVd}_is_delete" id="{$video.watchvideoID}" title="{$language.lblDelete}"  content=""  class="datacss delete02 icon-set deleteRowVd"} 
    </td>   
    </tr>
    {/foreach}
    {/if} 
    <tr class="nodrag nodrop hide" id="attroptions_loader_V">
      <td colspan="7" align="center"><img src="{$view_images}/loader-1.gif" /></td>
    </tr>
  
  </table>
 
</div>
 {html->anchor class="linkbtnt01 add-new-btn forSelectType fixing_right" href="" id="add_new_options_vd" content="<span class='plus-v'></span><span class='plus-h'></span> {$language.lblAdd} {$language.lblVideo}"}  
</div>
{form->hidden name="attrOptionAddCount" value=$attrOptionCount}
{form->hidden name="attrOptionVdAddCount" value=$attrOptionCountVd}
{if $watchvideoID > 0}
{assign var="currentAction" value="edit"} 
{else}
{assign var="currentAction" value="new"} 
{/if}
{form->hidden name="attributeMode" value=$currentAction}
{form->validate_script form="formAttributeAdd"}
