<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">نظام الجمعيات</a></li>
            <li><a href="charityCenterController.php?do=show">عرض المراكز</a></li>
            {if $centerdata->del lt 2}
            <li class="active">تعديل </li>
            {else}
            <li class="active">تفاصيل </li>
            {/if}
        </ol>
        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                {if $centerdata->del lt 2}
                <h3 class="panel-title">تعديل </h3>
                {else}
                <h3 class="panel-title">تفاصيل </h3>
                {/if}
            </div>
            <div class="panel-body">


                {literal}
                <form class="form-horizontal" action="charityCenterController.php" id="charityformajax" method="post"
                    enctype="multipart/form-data" data-dosave="?do=savedata">

                    {/literal}

                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">اسم المركز</label>
                        <div class="col-lg-4">
                            <input required="required" type="text" name="name" class="form-control checkcolumn"
                                placeholder="اسم المركز" data-table="charitiescenter" data-tablecol="name"
                                data-tableid="{$centerdata->id}" data-parentid="" data-parentcol=""
                                value="{$centerdata->name}" />
                        </div>
                    </div>
                    <input type="hidden" name="charityid" value="{$centerdata->id}" />
                    {if $centerdata->del neq 5}
                    <input type="hidden" class="deldata" value="{$centerdata->del}" />
                    {/if}

                    {if $centerdata->del lt 2}
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" class="btn btn-primary pull-left charityformajax">تعديل </button>
                        </div>
                    </div>
                    {/if}
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        deldata();
    });
</script>