{if $tableName == "organizations"}    
<tr>
    <td >
        <input type="hidden" id="selectIdMain" value="{$selectId}">
        <input type="text" class="form-control updateElement"  id="organization_name{$i}" 
               data-itr="{$i}" data-id="{$mydata->id}" 
               data-colName="organization_name" data-tableName="{$tableName}" >
    </td>
    {if $notAll != 1 }
    <td >
        <input type="text" class="form-control updateElement"  id="organization_discount{$i}" 
               data-itr="{$i}" data-id="{$mydata->id}"     value="0"  
               data-colName="organization_discount" data-tableName="{$tableName}" >
    </td>
    <td >
        <input type="text" class="form-control updateElement"  id="center_discount{$i}" 
               data-itr="{$i}" data-id="{$mydata->id}"   value="0"
               data-colName="center_discount" data-tableName="{$tableName}" >
    </td>

    <td class="txtc" > 
        <input type="radio"  name="discountType{$i}"   value="0"  data-itr="{$i}" data-id="{$mydata->id}"
               data-colName="discount_type" data-tableName="{$tableName}" checked class="updateElement">
    </td>
    <td class="txtc" > 
        <input type="radio"  name="discountType{$i}"  value="1" data-itr="{$i}" data-id="{$mydata->id}"
               data-colName="discount_type" data-tableName="{$tableName}" class="updateElement">
    </td>
    {/if}
    <td>
        <a href="#" class="btn red fleft deleteelement" data-id="{$mydata->id}" data-link="visits" 
           data-fun="delAjax" data-tableName="{$tableName}"  style="padding: 2px 0px;width: 100%">
            <i class="fa fa-times" ></i>
        </a>

    </td>
</tr>

{else if $tableName == "price_lists" ||   $tableName == "entry_type" ||   $tableName == "entry_exit"||   
$tableName == "entry_relation"||   $tableName == "entry_exit_case"} 
<tr>
    <td >
        <input type="text" class="form-control updateElement"  id="name{$i}"
               data-itr="{$i}" data-id="{$mydata->id}"  value='{$mydata->name}'
               data-colName="name" data-tableName="{$tableName}" >
    </td>
    <td>
        <a href="#" class="btn red fleft deleteelement" data-id="{$mydata->id}" data-link="visits"
           data-fun="delAjax" data-tableName="{$tableName}"  style="padding: 2px 0px;width: 100%">
            <i class="fa fa-times" ></i>
        </a>
    </td>
</tr>


{else if $tableName == "organizations_parents"}

<tr>
    <td >
        <input type="hidden" id="selectIdParent" value="{$selectId}">
        <input type="text" class="form-control updateElement"  id="name{$i}"
               data-itr="{$i}" data-id="{$mydata->id}"  value='{$mydata->name}'
               data-colName="name" data-tableName="{$tableName}" >
    </td>
    <td>
        <a href="#" class="btn red fleft deleteelement" data-id="{$mydata->id}" data-link="visits"
           data-fun="delAjax" data-tableName="{$tableName}"  style="padding: 2px 0px;width: 100%">
            <i class="fa fa-times" ></i>
        </a>
    </td>
</tr>

{/if}
