%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div id="users"> <h1><img src="<?= base_url('assets/imgs/admin-user.png') ?>" class="header-img" style="margin-top:-3px;"> Manage Contact</h1> <hr> <?php if ($this->session->flashdata('result_add')) { ?> <hr> <div class="alert alert-success"><?= $this->session->flashdata('result_add') ?></div> <hr> <?php } if ($this->session->flashdata('result_delete')) { ?> <hr> <div class="alert alert-success"><?= $this->session->flashdata('result_delete') ?></div> <hr> <?php } $disciplinesArray = array(); foreach($disciplines as $dval){ $disciplinesArray[$dval['id']] = $dval['name']; } ?> <a href="javascript:void(0);" data-toggle="modal" data-target="#add_edit_address_module" class="btn btn-primary btn-xs pull-right linkstylebox" style="margin-bottom:10px;"><b>+</b> Add New Address</a> <div class="clearfix"></div> <?php if ($su_contact) { ?> <div class="table-responsive"> <table class="table table-striped custab"> <thead> <tr> <th>#ID</th> <th>Title</th> <th>Email</th> <th>Full Address</th> <th>Contact Numbers</th> <th>Type</th> <th>Display Order</th> <th>Status</th> <th class="text-center">Action</th> </tr> </thead> <?php $count= 1; foreach ($su_contact as $contact) { ?> <tr> <td><?= $count++ ?></td> <td><?= $contact['address_title'] ?></td> <td><?= $contact['email_id'] ?></td> <td><?= $contact['full_address'] ?></td> <td><?= $contact['contact_number'] ?></td> <td><?= $contact['address_for'] ?></td> <td><?= $contact['display_order'] ?></td> <td><?= $contact['status']=='1' ? 'Active' : 'Inactive' ?></td> <td class="text-center"> <div> <a href="?delete=<?= $contact['id'] ?>" class="confirm-delete"><span class="glyphicon glyphicon-trash"></span></a> <a href="?edit=<?= $contact['id'] ?>"><span class="glyphicon glyphicon-edit"></span></a> </div> </td> </tr> <?php } ?> </table> </div> <form method="POST"><input type="submit" name="export" value="Export" class="btn btn-default" style="float:right;"></form> <?php } else { ?> <div class="clearfix"></div><hr> <div class="alert alert-info">No address found!</div> <?php } ?> <!-- add edit users --> <div class="modal fade" id="add_edit_address_module" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="" method="POST" enctype="multipart/form-data"> <div class="modal-header"> <button type="button" class="close" <?php if(isset($_GET['edit'])) { ?> onClick="history.go(-1)" <?php } else { ?> data-dismiss="modal" aria-label="Close" <?php } ?>><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel"><?php if(isset($_GET['edit'])) { ?> Edit <?php } else { ?> Add New<?php } ?> Address</h4> </div> <?php if (validation_errors()) { ?> <div class="alert alert-danger"><?= validation_errors() ?></div> <?php } ?> <div class="modal-body"> <input type="hidden" name="edit" value="<?= isset($_GET['edit']) ? $_GET['edit'] : '0' ?>"> <div class="form-group"> <label for="email">Title</label> <input type="text" name="address_title" placeholder = 'Sharda University' class="form-control" value="<?= isset($_POST['address_title']) ? $_POST['address_title'] : '' ?>" id="address_title" required> </div> <div class="form-group"> <label for="email">Email Id</label> <input type="text" name="email_id" placeholder = 'Email Id' class="form-control" value="<?= isset($_POST['email_id']) ? $_POST['email_id'] : '' ?>" id="email_id"> </div> <div class="form-group"> <label for="email">Complete Address</label> <textarea name="full_address" id="full_address" placeholder = 'Full Address' class="form-control" > <?= isset($_POST['full_address']) ? $_POST['full_address'] : '' ?></textarea> </div> <div class="form-group"> <label for="email">Contact Numbers</label> <textarea name="contact_number" id="contact_number" placeholder='Contact Numbers' class="form-control" > <?= isset($_POST['contact_number']) ? trim($_POST['contact_number']) : '' ?></textarea> </div> <div class="form-group bordered-group"> <?php if (isset($_POST['location_image']) && $_POST['location_image'] != null) { $image = 'attachments/location_images/' . $_POST['location_image']; if (!file_exists($image)) { $image = 'attachments/no-image.png'; } ?> <p>Location Image:</p> <div> <img src="<?= base_url($image) ?>" class="img-responsive img-thumbnail" style="max-width:80px; margin-bottom: 5px;"> </div> <input type="hidden" name="old_image" value="<?= $_POST['location_image'] ?>"> <?php if (isset($_GET['to_lang'])) { ?> <input type="hidden" name="location_image" id="location_image" value="<?= $_POST['location_image'] ?>"> <?php } } ?> <label for="userfile">Location Image</label> <input type="file" id="location_image" name="location_image" /> </div> <div class="form-group"> <label for="assign_role">Address Type</label> <select class="form-control" name="address_type" id="address_type" required> <option value=""> -- Select Address Type -- </option> <option value="Corporate" <?php if(@$_POST['address_type']=='Corporate') { echo 'selected = "selected"'; }?>>Corporate Office</option> <option value="Counseling Centre" <?php if(@$_POST['address_type']=='Counseling Centre') { echo 'selected = "selected"'; }?>>Counseling Centre</option> </select> </div> <div class="form-group"> <label for="assign_role">Address For</label> <select class="form-control" name="address_for" id="address_for" required> <option value=""> -- Select Address Type -- </option> <option value="Both" <?php if(@$_POST['address_for']=='Both') { echo 'selected = "selected"'; }?>>Both</option> <option value="National" <?php if(@$_POST['address_for']=='National') { echo 'selected = "selected"'; }?>>National</option> <option value="International" <?php if(@$_POST['address_for']=='International') { echo 'selected = "selected"'; }?>>International</option> </select> </div> <?php if($_POST['is_display_home']=='') { $_POST['is_display_home'] = 'N'; } ?> <div class="form-group"> <label for="awards">Is Display Home?</label> <input type="radio" name="is_display_home" id="is_display_home" value="Y" <?php if($_POST['is_display_home']=='Y') { echo 'checked'; } ?>/> Yes <input type="radio" name="is_display_home" id="is_display_home" value="N" <?php if($_POST['is_display_home']=='N') { echo 'checked'; } ?>/> No </div> <?php if($_POST['is_display_contactpage']=='') { $_POST['is_display_contactpage'] = 'N'; } ?> <div class="form-group"> <label for="awards">Is Display Conatct Page?</label> <input type="radio" name="is_display_contactpage" id="is_display_contactpage" value="Y" <?php if($_POST['is_display_contactpage']=='Y') { echo 'checked'; } ?>/> Yes <input type="radio" name="is_display_contactpage" id="is_display_contactpage" value="N" <?php if($_POST['is_display_contactpage']=='N') { echo 'checked'; } ?>/> No </div> <div class="form-group"> <label for="assign_role">Display Order</label> <select class="form-control" name="display_order" id="display_order" required> <option value=""> -- Select Display Order -- </option> <?php for($k=1; $k<=50; $k++){ ?> <option value="<?=$k?>" <?php if(@$_POST['display_order']==$k) { echo 'selected = "selected"'; }?>><?=$k?></option> <?php } ?> </select> </div> <div class="form-group"> <label for="assign_role">Status</label> <select class="form-control" name="status" id="status" required> <option value=""> -- Select Status -- </option> <option value="1" <?php if(@$_POST['status']=='1') { echo 'selected = "selected"'; }?>>Active</option> <option value="0" <?php if(@$_POST['status']=='0') { echo 'selected = "selected"'; }?>>Inactive</option> </select> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" <?php if(isset($_GET['edit'])) { ?> onClick="history.go(-1)" <?php } else { ?> data-dismiss="modal" <?php } ?>>Cancel</button> <input type="submit" class="btn btn-primary" value="Save"> </div> </form> </div> </div> </div> </div> <script> <?php if (isset($_GET['edit'])) { ?> $(document).ready(function () { $("#add_edit_address_module").modal('show'); }); <?php } ?> </script>