
<div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Previous Art Cycles </div>
        <div class="actions"></div>
        <div class="tools">
            <a href="#" class="collapse" title="تصغير / تكبير"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="row">
            <div id="ultrasoundgynaDiv">
                <div class="row">
                    <div class="portlet-body form" >
                        <form>
                            <div class="form-body">
                                <input type="hidden" id="pastart_itr" value="{$phpastartcount}"/>
                                <table>
                                    <tbody>
                                    <th class="wds15">Art
                                        <button type="button" class="btn btn-xs blue" id="pastart_btn" data-summary="1">
                                            <i class="fa fa-plus"></i> </button>
                                    </th>
                                    <td> 
                                        <table>
                                            <tr>
                                                <th class="wds16">Type </th>
                                                <th class="wds16">Center </th>
                                                <th class="wds8"> Year</th>
                                                <th class="wds25"> Result</th>
                                                <th> Note</th>
                                                <th class="wds5"> </th>
                                            </tr>
                                        </table>
                                        <table  id="pastart_div">
                                            {assign var=i value=1}
                                            {foreach $phpastart as $myallphpastart}
                                            <tr>
                                                <td class="wds16"> 
                                                    <select  class="form-control arttype arttypeExtra updateElement allupdateselect" id="arttype{$i}" data-itr="{$i}" data-val="{$myallphpastart->arttype}"  name="arttype" data-colName="arttype" select-tableName="phpastarttype" data-id="{$myallphpastart->id}" data-tableName="phpastart" >
                                                        <option value="">choose</option>
                                                        {foreach  $allphpastarttype as $myallphpastarttype}
                                                        <option value="{$myallphpastarttype->id}" {if {$myallphpastart->arttype} eq  {$myallphpastarttype->id} } selected {/if}>{$myallphpastarttype->name} </option>
                                                        {/foreach}
                                                        <option value="-2" class="deleteoptincompo">Delete</option>
                                                    </select>
                                                </td>
                                                <td class="wds16">
                                                    <select  class="form-control artcenter updateElement allupdateselect" id="artcenter{$i}" data-itr="{$i}" data-val="{$myallphpastart->artcenter}" name="artcenter" data-colName="artcenter" data-id="{$myallphpastart->id}" select-tableName="phpastartcenter" data-tableName="phpastart" >
                                                        <option value="">choose</option>
                                                        {foreach  $allphpastartcenter as $myallphpastartcenter}
                                                        <option value="{$myallphpastartcenter->id}" {if {$myallphpastart->artcenter} eq  {$myallphpastartcenter->id} } selected {/if}>{$myallphpastartcenter->name} </option>
                                                        {/foreach}
                                                        <option value="-2" class="deleteoptincompo">Delete</option>
                                                    </select>
                                                </td>
                                                <td class="wds8"> 
                                                    <input type="text" class="form-control updateElement" placeholder="Year" name="artyear" data-colName="artyear"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->artyear}" />

                                                </td>
                                                <td class="wds25"> 
                                                    <select  class="form-control result updateElement allupdateselect" id="result{$i}" data-itr="{$i}" data-val="{$myallphpastart->result}" name="result" data-colName="result" data-id="{$myallphpastart->id}" select-tableName="phpastartresult" data-tableName="phpastart" >
                                                        <option value="">choose</option>
                                                        {foreach  $artResult as $data}
                                                        <option value="{$data->id}" {if {$myallphpastart->result} eq  {$data->id} } selected {/if}>{$data->name} </option>
                                                        {/foreach}
                                                        <option value="-2" class="deleteoptincompo">Delete</option>
                                                    </select>
                                                </td>
                                                <td>
                                                    <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="artnote" 
                                                           data-colName="artnote"  data-id="{$myallphpastart->id}" data-tableName="phpastart" 
                                                           value="{$myallphpastart->artnote}"/>

                                                </td>
                                                <td class="wds5">
                                                    <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$myallphpastart->id}" 
                                                       data-link="{$controllname}"  data-fn="del" data-tableName="phpastart" data-colName="del">
                                                        <i class="fa fa-times"></i> </a>
                                                </td>
                                            </tr>
                                            {capture assign=i}{$i+1}{/capture}
                                            {/foreach}
                                        </table>
                                    </td>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>

