<?php /* Smarty version Smarty-3.1.11, created on 2024-08-18 07:56:44
         compiled from "../views/obgy/organizations/org_add.html" */ ?>
<?php /*%%SmartyHeaderCode:205005987066c17f0cd70be3-58526755%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e3da3ddf8ccc6935837f01dc9974a5d4e98eefa5' => 
    array (
      0 => '../views/obgy/organizations/org_add.html',
      1 => 1723956963,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '205005987066c17f0cd70be3-58526755',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'data' => 0,
    'orgParents' => 0,
    'single' => 0,
    'price_lists' => 0,
    'one' => 0,
    'sales_persons' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66c17f0cdc98d3_58437362',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66c17f0cdc98d3_58437362')) {function content_66c17f0cdc98d3_58437362($_smarty_tpl) {?><style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;
        table-layout: fixed
    }

    td, th {
        border: 1px solid #000000;
        text-align: center;
        padding: 2px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>


<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz" >
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">

                            <i class="fa fa-user"></i>Organization
                        </div>
                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=organizations"
                               class="btn btn-default btn-sm">
                                Show </a>
                        </div>
                    </div>

                    <div class="portlet-body all">
                        <div class="row">
                            <div class="portlet-body form">
                                <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=org_add" method="post"
                                      id="org_add_form">
                                    <div class="form-body">
                                        <div class="portlet box grey-cascade">
                                            <div class="portlet-body">
                                                <div class="row">
                                                    <input type="hidden" id="controllName" value="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
"/>
                                                    <table>
                                                        <tbody>
                                                            <tr>
                                                                <th class="wds20">Id</th>
                                                                <td>
                                                                    <input type="text" class="form-control " id="org_id"   name="org_id"  required />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Name</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="name" id="name" required />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Related To.</th>
                                                                <td>
                                                                    <select class="form-control organizations_parents"
                                                                            id="organizations_parents<?php echo $_smarty_tpl->tpl_vars['data']->value['id'];?>
" name="parent_id">
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['orgParents']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
"  ><?php echo $_smarty_tpl->tpl_vars['single']->value['name'];?>
</option>
                                                                        <?php } ?>
                                                                        <option value="-1" class="deleteoptincompo">تعديل </option>
                                                                    </select>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Type</th>
                                                                <td>
                                                                    <div class="form-group ">
                                                                        <div class="col-md-6">
                                                                            <div class="col-md-3">
                                                                                <div class="md-radio-list">
                                                                                    <div class="md-radio">
                                                                                        <input type="radio" id="org_type0" name="org_type"
                                                                                               class="md-radiobtn org_type" value="0">
                                                                                        <label for="org_type0">
                                                                                            <span></span>
                                                                                            <span class="check"></span>
                                                                                            <span class="box"></span>
                                                                                            Cash </label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>

                                                                            <div class="col-md-3">
                                                                                <div class="md-radio-list">
                                                                                    <div class="md-radio">
                                                                                        <input type="radio" id="org_type1" name="org_type"
                                                                                               class="md-radiobtn org_type" value="1">
                                                                                        <label for="org_type1">
                                                                                            <span></span>
                                                                                            <span class="check"></span>
                                                                                            <span class="box"></span>
                                                                                            Credit  </label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Address</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="location" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Contact  No.</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="phone" />
                                                                </td>
                                                            </tr>



                                                            <tr>
                                                                <th>Contact Person  </th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="contact_person" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Price List</th>
                                                                <td>
                                                                    <select  class="form-control select2h"  name="price_list">
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['price_lists']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                                        <?php } ?>
                                                                    </select>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Sales Person</th>
                                                                <td>
                                                                    <select  class="form-control sales_persons"  name="sales_persons"
                                                                             id="sales_persons">
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sales_persons']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                                        <?php } ?>
                                                                        <option value="-1" class="deleteoptincompo">تعديل </option>
                                                                    </select>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Contract Start</th>
                                                                <td>
                                                                    <input type="text" class="form-control datepicker " name="contract_start" />
                                                                </td>

                                                            </tr>

                                                            <tr>
                                                                <th>Email</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="email" />
                                                                </td>

                                                            </tr>

                                                            <tr>
                                                                <th>Vat No.</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="vat_no" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Credit Limit</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="credit_limit" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>User Name</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="username"
                                                                           id ="username"  />

                                                                    <div class="alert alert-warning display-hide" id="showerrorusername">
                                                                        <button class="close" data-close="alert"></button>
                                                                        Use another one , this used before with other user.
                                                                    </div>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Password</th>
                                                                <td>
                                                                    <input type="password" class="form-control " name="password"
                                                                           id ="password"  />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Confirm  Password </th>
                                                                <td>
                                                                    <input type="password" class="form-control " 
                                                                           name="confirmpassword"    id ="confirmpassword"  />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>

                                    </div>


                                    <div class="form-actions">
                                        <div class="row">
                                            <div class="col-md-offset-3 col-md-4 fright">
                                                <button type="submit" class="btn green">Save</button>
                                                <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=organizations"
                                                   class="btn default">
                                                    Cancel </a>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<div  id="editModalDiv"></div><?php }} ?>