<?php /* Smarty version 2.6.22, created on 2014-03-27 07:53:54
         compiled from C:/xampp/htdocs/zipmarket%5Capps%5Cupload%5Cviews/form.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'C:/xampp/htdocs/zipmarket\\apps\\upload\\views/form.html', 25, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
       <a href='/' class="first">Home</a>\</div>
      <h1 class="page-title">Upload an Item </h1>
    </div>
  </div>
    <div id="content">
      <div class="container">
    <?php echo $this->_tpl_vars['errorMessage']; ?>

<div class="content-s">
<?php if (! isset ( $this->_tpl_vars['hideForm'] )): ?>

	  <script type="text/javascript" src="<?php echo $this->_tpl_vars['data_server']; ?>
nicEditors/nicEdit.js"></script>
      <script type="text/javascript">
      <?php echo 'bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });'; ?>

      </script>	
	  
	  <form class="horizontal-form item-form disable-on-submit"  id="upload-form" method="post" enctype="multipart/form-data">
    <div class="content-box">
      <h3>Name & Description</h3>
      <div class="input-group">
        <label for="name"><?php echo $this->_tpl_vars['lang']['name']; ?>
</label>
        <div class="inputs">
          <input type="text" id="name" name="name" value="<?php echo ((is_array($_tmp=$_POST['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" maxlength="50" style="width: 451px;" />
		  <small>Maximum 50 characters. Follow our <a href="/help/upload/" target="_blank">Item Title Naming Conventions</a>.</small>
        </div>
      </div>
      <div class="input-group">
        <label for="description"><?php echo $this->_tpl_vars['lang']['description']; ?>
</label>
        <div class="inputs">
          <textarea name="description" id="description"><?php echo $_POST['description']; ?>
</textarea>
          <small><?php echo $this->_tpl_vars['lang']['upload_desc_info']; ?>
</small>
        </div>
      </div>
    </div>
    <div class="content-box">
<h3>
  <?php echo $this->_tpl_vars['lang']['files']; ?>

  
   <small class="header-note">Trouble uploading?<a href="/help/upload/" target="_blank"> Follow the upload instructions</a></small>
</h3>

<div id="upload-container">
  <div id="uploads" style="display: none;"></div>
  
<div id="fancy-upload">
					  	<span id="spanButtonPlaceHolder"></span>
							<input id="btnCancel" type="hidden" value="Cancel All Uploads" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 29px;" />	
						  	<br />
						  	<div class="fieldset flash" id="fsUploadProgress">
									<span class="legend" style="display: none;">Queue files</span>
								</div>
								<div id="divStatus" style="display: none;">0 uploaded files</div>
								<br />
								<div id="divFileProgressContainer"></div>
								<div id="thumbnails"></div>
						  
</div>
</div>

<div id="upload_form_user_files_section">
 	<script type="text/javascript">
	//<![CDATA[
	  var initialUserFiles = [];

	  <?php echo '
		$(".iframe").fancybox({
			\'width\'				: 400,
			\'height\'			: 130,
	    \'autoScale\'     	: false,
	    \'transitionIn\'		: \'none\',
			\'transitionOut\'		: \'none\',
			\'type\'				: \'iframe\'
		});
		'; ?>

	  
	//]]>
	</script>
	<div class="input-group">
      <label><?php echo $this->_tpl_vars['lang']['thumbnail']; ?>
</label>
    <div class="inputs">
								  	<select class="input big ajaxinput" id="temporary_files_to_assign_thumbnail" name="thumbnail">
								  		<option class="placeholder" value=""></option>
								  		<?php if ($_SESSION['temp']['uploaded_files']): ?>
								  			<?php $_from = $_SESSION['temp']['uploaded_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
								  				<option class="placeholder" value="<?php echo $this->_tpl_vars['s']['filename']; ?>
" <?php if ($_POST['thumbnail'] == $this->_tpl_vars['s']['filename']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['s']['name']; ?>
</option>
								  			<?php endforeach; endif; unset($_from); ?>
								  		<?php endif; ?>
								  	</select>
								  	
	  <small>JPEG or PNG 80x80px Thumbnail</small>
    </div>
  </div>
  <div class="input-group">
      <label><?php echo $this->_tpl_vars['lang']['main_file']; ?>
</label>
    <div class="inputs">
								  	<select class="input big ajaxinput" id="temporary_files_to_assign_source" name="main_file">
								  		<option class="placeholder" value=""></option>
								  		<?php if ($_SESSION['temp']['uploaded_files']): ?>
								  			<?php $_from = $_SESSION['temp']['uploaded_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
								  				<option class="placeholder" value="<?php echo $this->_tpl_vars['s']['filename']; ?>
" <?php if ($_POST['main_file'] == $this->_tpl_vars['s']['filename']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['s']['name']; ?>
</option>
								  			<?php endforeach; endif; unset($_from); ?>
								  		<?php endif; ?>
								  	</select>
	  <small>ZIP - All files for buyers, not including preview images</small>
    </div>
  </div>
  <div class="input-group">
      <label>Preview Screenshots</label>
    <div class="inputs">
								  	<select class="input big ajaxinput" id="temporary_files_to_assign_gallery_preview" name="theme_preview">
								  		<option class="placeholder" value=""></option>
								  		<?php if ($_SESSION['temp']['uploaded_files']): ?>
								  			<?php $_from = $_SESSION['temp']['uploaded_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
								  				<option class="placeholder" value="<?php echo $this->_tpl_vars['s']['filename']; ?>
" <?php if ($_POST['theme_preview'] == $this->_tpl_vars['s']['filename']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['s']['name']; ?>
</option>
								  			<?php endforeach; endif; unset($_from); ?>
								  		<?php endif; ?>
								  	</select>	  
	  <small>ZIP file of images (png/jpg) w/ optional text descriptions for display on the site</small>
    </div>
  </div>

    <div class="note">
      <?php echo $this->_tpl_vars['lang']['filesize_info']; ?>

    </div>
</div>

    </div>

    <div class="content-box">
  <h3><?php echo $this->_tpl_vars['lang']['category_attributes']; ?>
</h3>
  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['category']; ?>
</label>
     <div class="inputs">
      <select name="category[]"><?php echo $this->_tpl_vars['categoriesSelect']; ?>
</select>
    </div>
  </div>
  
  
  

  
  

  <div id="attribute_fields">
  
							  <?php if ($this->_tpl_vars['attributes']): ?>
							  	<?php $_from = $this->_tpl_vars['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a']):
?>
									<br /><div class="input-group">
									<label><?php echo $this->_tpl_vars['a']['name']; ?>
</label>
									<div class="inputs">
									  	<?php if ($this->_tpl_vars['a']['type'] == 'select'): ?>									  	
									      <select class="input big mt5" id="custom_attributes_<?php echo $this->_tpl_vars['a']['id']; ?>
" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]">
									      	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
									      		<option value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if ($_POST['attributes'][$this->_tpl_vars['a']['id']] == $this->_tpl_vars['ai']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['ai']['name']; ?>
</option>
									      	<?php endforeach; endif; unset($_from); ?>
										  </select>
										  <?php elseif ($this->_tpl_vars['a']['type'] == 'multiple'): ?>
									      <select multiple="multiple" id="custom_attributes_<?php echo $this->_tpl_vars['a']['id']; ?>
" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]">
									      	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
									      		<option value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if ($_POST['attributes'][$this->_tpl_vars['a']['id']] == $this->_tpl_vars['ai']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['ai']['name']; ?>
</option>
									      	<?php endforeach; endif; unset($_from); ?>
										  </select>
										  <?php elseif ($this->_tpl_vars['a']['type'] == 'check'): ?>
										  	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
								      		<input type="checkbox" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
][<?php echo $this->_tpl_vars['ai']['id']; ?>
]" value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if (isset ( $_POST['attributes'][$this->_tpl_vars['a']['id']][$this->_tpl_vars['ai']['id']] )): ?>checked="checked"<?php endif; ?> class="mt5"/> <?php echo $this->_tpl_vars['ai']['name']; ?>
<br />
								      	<?php endforeach; endif; unset($_from); ?>
										  <?php elseif ($this->_tpl_vars['a']['type'] == 'radio'): ?>
										  	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
								      		<label><input type="radio" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]" value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if (isset ( $_POST['attributes'][$this->_tpl_vars['a']['id']] ) && $_POST['attributes'][$this->_tpl_vars['a']['id']] == $this->_tpl_vars['ai']['id']): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['ai']['name']; ?>
 </label>
											<?php endforeach; endif; unset($_from); ?>
								      <?php else: ?>
								      	<input type="text" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]" value="<?php echo $_POST['attributes'][$this->_tpl_vars['a']['id']]; ?>
" />
										  <?php endif; ?>
			  						</div></div>
							  	<?php endforeach; endif; unset($_from); ?>
							  <?php endif; ?>
						
	<div class="input-group">
      <label for="item_item_attributes_attributes_4_text_value"><?php echo $this->_tpl_vars['lang']['demo_url']; ?>
</label>
      <div class="inputs">
      <input autocomplete="off" id="custom_attributes_standard_Demo_URL" name="demo_url" type="text" value="<?php echo ((is_array($_tmp=$_POST['demo_url'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
      <small><?php echo $this->_tpl_vars['lang']['demo_url_info']; ?>
</small>
     </div>
   </div>										
 </div>


  <div class="note">Some of our fields allow you to select multiple values. Please use the CTRL key (PC) or COMMAND key (Mac) to select multiple items.</div>
</div>


      <div class="content-box">
	  
	  
	  
	  
	  
	    
  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['usage_tags']; ?>
</label>
     <div class="inputs">
	 <input type="text" class="tagInput input big" name="tags[usage]" value="<?php echo ((is_array($_tmp=$_POST['tags']['usage'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
    </div>
  </div>
  
  

  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['style_tags']; ?>
</label>
    <div class="inputs">
	<input type="text" class="tagInput input big" name="tags[style]" value="<?php echo ((is_array($_tmp=$_POST['tags']['style'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />	     
    </div>
  </div>
  
  

  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['features_tags']; ?>
</label>
    <div class="inputs">
     <input type="text" class="tagInput input big" name="tags[features]" value="<?php echo ((is_array($_tmp=$_POST['tags']['features'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />	     
    </div>
  </div>
	  
	  
	  

      </div>

    <div class="content-box">
      <h3><?php echo $this->_tpl_vars['lang']['message_to_reviewer']; ?>
</h3>
      <div class="input-group">
        <label for="comments_to_reviewer"><?php echo $this->_tpl_vars['lang']['comment']; ?>
</label>
        <div class="inputs">
          <textarea name="comments_to_reviewer" id="comments_to_reviewer"><?php echo $_POST['comments_to_reviewer']; ?>
</textarea>
        </div>
      </div>
     
	 <div class="input-group">
        <label>Price</label>
        <div class="inputs">
           <input type="text" class="input big" name="suggested_price" value="<?php echo ((is_array($_tmp=$_POST['suggested_price'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </div>
      </div>

      <div class="input-group">
        <label></label>
        <div class="inputs">
          <label for="got_proper_licenses">
           <input id="got_proper_licenses" name="source_license" type="checkbox" value="true" <?php if (isset ( $_POST['source_license'] )): ?>checked="checked"<?php endif; ?> />
            Any images, sounds, video, code, flash, or other assets that are not my own work, have been appropriately licensed for use in the file preview or main download. Other than these items, this work is entirely my own and I have full rights to sell it on <?php echo $this->_tpl_vars['domain']; ?>
.

          </label>
        </div>
      </div>
     <div class="form-submit">
     <input type="hidden" name="upload" value="yes" />
     <button type="submit" class="btn-icon upload"><?php echo $this->_tpl_vars['lang']['upload']; ?>
</button>
      </div>
    </div>
</form>
<?php endif; ?>
</div><!-- end of item-left -->

<div class="sidebar-l sidebar-right">

  <h2 class="box-heading">Switch Upload Category</h2>
<div class="content-box">
  <form id="begin-upload" action="/" method="get" >
    <p>
      <select id="category" name="category">
          	<?php if ($this->_tpl_vars['mainCategories']): ?>
          		<?php $_from = $this->_tpl_vars['mainCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
		          	<option value="<?php echo $this->_tpl_vars['c']['id']; ?>
" <?php if ($_GET['category'] == $this->_tpl_vars['c']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['c']['name']; ?>
</option>
          		<?php endforeach; endif; unset($_from); ?>
          	<?php endif; ?>
      </select>
    </p>

     <button onclick="window.location='/upload/form/?category=' + document.getElementById('category').options[document.getElementById('category').selectedIndex].value;" type=button class="btn-icon submit auto-width"><?php echo $this->_tpl_vars['lang']['switch_category']; ?>
</button>
    <a href="/help/upload/" class="btn-icon help" role="button" target="_blank">Help</a>
</form>

</div>


  <h2 class="box-heading">Get your item accepted</h2>
<div class="content-box">
  <p>To give your item the best chance possible to be accepted, please make sure you've:</p>
  <ul class="fancy-list">
    <li>Read and follow the <a href='/help/upload/' target="_blank">upload instructions</a>.</li>
    <li>Added useful tags and ensured they're spelled correctly (this helps buyers find your file).</li>
    <li>Added a thorough and useful item description (this also helps buyers find your file).</li>
  </ul>
  
  <p>If you've done all that, you're ready to upload. Thanks for selling with <?php echo $this->_tpl_vars['domain']; ?>
!</p>
</div>



  <h2 class="box-heading">Trouble Uploading?</h2>
  <div class="content-box">
    <p>
      Some users have experienced problems uploading. We've compiled a <a href="/help/upload/" target="_blank">list of things to check first</a> which might be of help.
      We're always working on improving our uploading infrastructure - but if you continue to experience problems please contact support.
    </p>
  </div>

  <h2 class="box-heading">Corrupt Zip Files</h2>
  <div class="content-box">
    <p>The following archive utilities have been found to generate non-standard zip files that our server is often unable to decompress:</p>
    <ul class="fancy-list">
      <li>7zip</li>
      <li>lzarc</li>
      <li>WinZip (Latest version)</li>
    </ul>
    <p>Please use another archive utility to reduce the chance of problems with your uploads.</p>
  </div>
</div>

      </div>
    </div>

<link href="/zipmarket/apps/<?php echo $_GET['module']; ?>
/ajax/swfupload/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->_tpl_vars['data_server']; ?>
/j_s/swfupload/swfupload.js"></script>
<script type="text/javascript" src="/zipmarket/apps/<?php echo $_GET['module']; ?>
/ajax/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="/zipmarket/apps/<?php echo $_GET['module']; ?>
/ajax/swfupload/fileprogress.js"></script>
<script type="text/javascript" src="/zipmarket/apps/<?php echo $_GET['module']; ?>
/ajax/swfupload/handlers.js"></script>

<?php echo '
<script type="text/javascript"> 
		var swfu;

		window.onload = function() {
			var settings = {
				flash_url : "'; ?>
<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo '/j_s/swfupload/Flash/swfupload.swf",
				upload_url: "'; ?>
/zipmarket/apps/<?php echo $_GET['module']; ?>
<?php echo '/ajax/swfupload/doUpload.php",
				file_post_name: "file",
				file_size_limit : "500 MB",
				file_types : "'; ?>
<?php echo $this->_tpl_vars['fileTypes']; ?>
<?php echo '",
				file_types_description : "Files",
				file_upload_limit : 100,
				file_queue_limit : 0,
				debug: false,
				post_params: {
					\'sessID\': \''; ?>
<?php echo $this->_tpl_vars['sessID']; ?>
<?php echo '\'
				},
				custom_settings : {
					progressTarget : "fsUploadProgress",
					cancelButtonId : "btnCancel"
				},

				// Button settings
				button_image_url: "/static/img/upload.png",
				button_width: 127,
        button_height: 31,
				button_placeholder_id: "spanButtonPlaceHolder",
				
				// The event handler functions are defined in handlers.js
				file_queued_handler : fileQueued,
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_start_handler : uploadStart,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,
				queue_complete_handler : queueComplete	// Queue plugin event				
			};

			swfu = new SWFUpload(settings);
	     };
	</script>

'; ?>