system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /home/pfhr/public_html/admin/cache/
Upload File :
Current File : /home/pfhr/public_html/admin/cache/%%A4^A46^A46C1C75%%photos_add.html.php

<?php /* Smarty version 2.6.19, created on 2018-09-07 16:02:09
         compiled from photos_add.html */ ?>
<?php if ($this->_tpl_vars['message'] != ""): ?>
<div id="dialog" title="Success">
<p><?php echo $this->_tpl_vars['message']; ?>
</p>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error_message'] != ""): ?>
<div id="dialog" title="Error in Validation">
<?php echo $this->_tpl_vars['error_message']; ?>

</div>
<?php endif; ?>
		
<?php if (count ( $this->_tpl_vars['errmsg'] ) > 0): ?>  
<div id="dialog" title="Error in Validation">
<p>
<?php $_from = $this->_tpl_vars['errmsg']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['err'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['err']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['err']):
        $this->_foreach['err']['iteration']++;
?>
<?php echo $this->_tpl_vars['err']; ?>
<br>
<?php endforeach; endif; unset($_from); ?>
</p>
</div>
<?php endif; ?>

<div class="grid_9">
            <div class="box round first">
                <h2>Add New Photo</h2>	
					<div class="block ">
					
					
					
					<html>
<head>
<title>Ajax Image Upload </title>
</head>

<script src="js/jquery.min.js"></script>
<script src="js/jquery.wallform.js"></script>
<script>
 $(document).ready(function() { 
		
            $('#photoimg').die('click').live('change', function()			{ 
			           //$("#preview").html('');
			    
				$("#imageform").ajaxForm({target: '#preview', 
				     beforeSubmit:function(){ 
					
					console.log('ttest');
					$("#imageloadstatus").show();
					 $("#imageloadbutton").hide();
					 }, 
					success:function(){ 
				    console.log('test');
					 $("#imageloadstatus").hide();
					 $("#imageloadbutton").show();
					}, 
					error:function(){ 
					console.log('xtest');
					 $("#imageloadstatus").hide();
					$("#imageloadbutton").show();
					} }).submit();
					
		
			});
        }); 
</script>

<style>

body
{
font-family:arial;
}

#preview
{
color:#cc0000;
font-size:12px
}
.imgList 
{
max-height:150px;
margin-left:5px;
border:1px solid #dedede;
padding:4px;	
float:left;	
}

</style>
<body>

<div>


	



</div>
</body>
</html>



                    <form id="imageform" method="post" enctype="multipart/form-data" action='?do=photos&action=upload' style="clear:both">
                    <table class="form">
                        <tr>
                            <td class="col1">
                                <label>Date / Year </label>
                            </td>
                            <td class="col02">
                                <select name="txtyear" class="form-control">
									<option>Select Category</option>
									<option value="2010">2010</option>
									<option value="2011">2011</option>
									<option value="2012">2012</option>
									<option value="2013">2013</option>
									<option value="2014">2014</option>
									<option value="2015">2015</option>
									<option value="2016">2016</option>
									<option value="2017">2017</option>
									<option value="2018">2018</option>
									<option value="2019">2019</option>
									<option value="2020">2020</option>
								</select> 
							</td>
                        </tr>
						
						<tr>
                            <td class="col1">
                                <label>Category List </label>
                            </td>
                            <td class="col02">
                                <select name="txtcate" class="form-control">
									<option>Select Category</option>
									<option value="am">Annual Meetings</option>
									<option value="m">Meetings</option>
									<option value="s">Stitching Department</option>
								</select> 
							</td>
                        </tr>
						<tr>
                            <td class="col1">
                                <label>Message </label>
                            </td>
                            <td class="col02">
                               <textarea name="txtmessage" class="form-control" cols="33" rows="5"><?php echo $this->_tpl_vars['errval']['txtmessage']; ?>
</textarea>
                            </td>
                        </tr>
						<tr>
                            <td class="col1">
                                <label>Image </label>
                            </td>
                            <td class="col02">
                                <div id='imageloadbutton'>
<input type="file" name="photos[]" id="photoimg" multiple="true" />
</div>
<div id='imageloadstatus' style='display:none'><img src="loader.gif" alt="Uploading...."/></div>
                            </td>
                        </tr>
						<tr>
                            <td class="" colspan="5">
                                <center><div id='preview'>
</div></center>
                            </td>
                        </tr>
                    </table>
                    </form>
               </div>   
            </div>
        </div>
        <div class="clear">
        </div>