?
Current Path : /home1/savoy/public_html/unova.in/application/views/admin/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/unova.in/application/views/admin/add_gallery.php |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <?php $this->load->view('admin/header'); ?> <body> <?php $this->load->view('admin/menu'); $this->load->view('admin/jsfunctions'); ?> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.imgareaselect.min.js"></script> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.imgpreview.js"></script> <script type="text/javascript"> // <![CDATA[ var thumb_width = <?php echo $thumb_width ;?> ; var thumb_height = <?php echo $thumb_height ;?> ; var image_width = <?php echo $img['image_width'] ;?> ; var image_height = <?php echo $img['image_height'] ;?> ; // ]]> </script> <div class="container_12"> <!-- Example table --> <!-- Form elements --> <div class="grid_12"> <div class="module"> <h2><span>Add Gallery</span></h2> <div class="module-body" > <?php if($error) :?> <ul><li><strong>Error!</strong></li><li><?php echo $error ;?></li></ul> <?php endif ;?> <?php if($large_photo_exists && $thumb_photo_exists) :?> <?php echo $large_photo_exists." ".$thumb_photo_exists; ?> <p><a href="<?php echo $_SERVER["PHP_SELF"];?>">Upload another</a></p> <?php elseif($large_photo_exists && $thumb_photo_exists == NULL) :?> <h4>Create Thumbnail</h4> <div align="center"> <img src="<?php echo base_url() . $upload_path.$img['file_name'];?>" style="float: left; margin-right: 10px;" id="thumbnail" alt="Create Thumbnail" /> <div style="border:1px #e5e5e5 solid; float:left; position:relative; overflow:hidden; width:<?php echo $thumb_width;?>px; height:<?php echo $thumb_height;?>px;"> <img src="<?php echo base_url() . $upload_path.$img['file_name'];?>" style="position: relative;" alt="Thumbnail Preview" /> </div> <br style="clear:both;"/> <form name="thumbnail" id="validateform" action="<?=site_url();?>/admin/add_gallery" method="post"> <input type="hidden" name="x1" value="" id="x1" /> <input type="hidden" name="y1" value="" id="y1" /> <input type="hidden" name="x2" value="" id="x2" /> <input type="hidden" name="y2" value="" id="y2" /> <input type="hidden" name="file_name" value="<?php echo $img['file_name'] ;?>" /> <p> <label>Directory Name</label> <select name="directory_id" id="directory_id" class="required"> <?php $directories = $this->mastermodel->getdir(); ?> <option value="">Select</option> <?php foreach ($directories->result_array() as $dir) { ?> <option value="<?=$dir['directory_id'];?>"><?=$dir['directory_name'];?></option> <?php } ?> </select> </p> <p> <label>Image Title</label> <input type="text" name="title" id="title" class="input-medium required" /> </p> <p> <label>Sort</label> <input type="text" name="sort" id="sort" class="input-short required number" /> </p> <fieldset> <input class="submit-green" type="submit" id="save_thumb" value="Save" name="upload_thumbnail" /> </fieldset> </form> </div> <hr /> <?php else : ?> <h4>Upload Photo</h4> <form name="photo" enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"];?>" method="post"> <p> <label>Image</label> <input type="file" name="image" id="image" class="input-medium required" /> </p> <fieldset> <input class="submit-green" type="submit" value="Upload" name="upload" onclick="addformdata('validateform')" /> </fieldset> </form> <?php endif ?> </div> <!-- End .module-body --> </div> <!-- End .module --> <div style="clear:both;"></div> </div> <!-- End .grid_12 --> <div style="clear:both;"></div> </div> <!-- End .container_12 --> <?php $this->load->view('admin/footer'); ?> </body> </html>