{assign var="page_title" value=#free_release_offer#}
{include file="header.html"}
<script src="data/cache/{$JsLanguage}/locale.js" charset="{$charset}"></script>
<style type="text/css">
@import url({$theme_img_path}widgets.css);
</style>
<!-- {literal} -->
<script>
function htmlspecialchars(str) {
	return preg_replace(['&', '<', '>', '"'], ['&amp;', '&lt;', '&gt;', '&quot;'], str);
}
</script>
<!-- {/literal} -->

      <div class="subnav">{$position}</div>
      <div class="blank6"></div>
      <div class="main clearfix">
      <div class="main_left">
         <div class="offer_login_title">
            <div class="title_bar_s1">
              <h2>{#pls_login#}</h2>
           </div>  
         </div>
         <div class="offer_login_content">
           <p>{lang free_post_tip}</p>
        <form name="loggingfrm" id="LoggingFrm" method="post" action="logging.php">
        	<input type="hidden" name="action" value="logging">
			<input type="hidden" name="formhash" value="{$formhash}">
			<input type="hidden" name="forward" value="offer/post.php" />
           <table class="user_login">
          <tr>
            <th>{lang user_name}</th>
            <td><input type="text" name="data[login_name]" id="LoginName" value="" tabindex="1" class="t_input_w90"></td>
          </tr>
          <tr>
            <th>{lang password}</th>
            <td><input name="data[login_pass]" type="password" id="LoginPass" value="" tabindex="2" class="t_input_w90"></td>
          </tr>
          <tr>
            <th>&nbsp;</th>
            <td><input type="button" onclick="$('#LoggingFrm').submit();" name="log_in" id="LogIn" value="{lang login}" class="btn_submit"/></td>
          </tr>
        </table>
       </form>
        <div class="user_reg">
         <h3>{lang i_not_member}</h3>
		 <p><a href="member.php" class="reg_orange">{lang join_now}</a></p>    
         </div>
         </div>
      </div>
      <div class="main_right">
		{if $Errors}{$Errors}{/if}
         <div class="base_title">
           <h2><span class="corner_t_l"></span><span class="corner_t_m title_mouse">{lang base_info}</span><span class="corner_t_r"></span></h2> 
        </div>
        <div class="base_info_content box_bord clearfix">
		<form name="post_frm" id="PostFrm" enctype="multipart/form-data" method="post" action="{$smarty.server.PHP_SELF}">
		<input type="hidden" name="visit_post" value="visit_post" id="VisitPost" />
		<input type="hidden" name="formhash" value="{$formhash}" id="FormHash" />
            <table class="base_info">
              <tr>
                <th>{lang offer_direction}<span class="star">*</span></th>
                <td>{html_radios name="data[trade][type_id]" options=$TradeTypes checked="1" separator=" "}</td>
              </tr>
              <tr>
                <th>{lang info_title}<span class="star">*</span></th>
                <td><input name="data[trade][title]" id="trade_title" type="text" size="32" value="{$item.title}"><span class="gray">{lang within_sixteen_words}</span></td>
              </tr>
              <tr>
                <th>{lang details}<span class="star">*</span></th>
                <td><textarea name="data[trade][content]" id="trade_content" cols="60" rows="8" wrap="virtual">{$item.content}</textarea>
                    <p class="gray">{lang product_description}</p>
                    <p class="gray">{lang product_description_using_image}</p>
					</td>
              </tr>
              <tr>
                <th>{lang expire_date}<span class="star">*</span></th>
                <td><span class="expires">{html_radios name="expire_days" options=$OfferExpires checked="30" separator=" "}</span></td>
              </tr>
              <tr>
                <th>{lang area}<span class="star">*</span></th>
                <td>
                <p id="dataArea">
					<select name="data[trade][area_id1]" id="dataTradeAreaId1" class="level_1" style="width:120px;" ></select>
					<select name="data[trade][area_id2]" id="dataTradeAreaId2" class="level_2" style="width:120px;"></select>
					<select name="data[trade][area_id3]" id="dataTradeAreaId3" class="level_3" style="width:120px;"></select>
				</p>
                </td>
              </tr>
              <tr>
                <td colspan="2" class="bg"><span class="bold">{lang not_must_content}</span></td>
              </tr>
              <tr>
                <th>{lang belong_industry}</th>
                <td>
                <p id="dataIndustry">
					<select name="data[trade][industry_id1]" id="dataTradeIndustryId1" class="level_1" style="width:120px;" ></select>
					<select name="data[trade][industry_id2]" id="dataTradeIndustryId2" class="level_2" style="width:120px;"></select>
					<select name="data[trade][industry_id3]" id="dataTradeIndustryId3" class="level_3" style="width:120px;"></select>
				</p>
                </td>
              </tr>
              <tr>
                <th>{lang tags}</th>
                <td><input name="data[tag]" id="dataTag" type="text" value=""><em>{lang tags_more}</em></td>
              </tr>
    
              <tr>
                <td colspan="2" class="bg"><span class="bold">{lang contact}</span>{lang content_required}</td>
              </tr>
              <tr>
                <th>{lang contact}<span class="star">*</span></th>
                <td><input type="text" name="data[tradefield][link_man]" id="link_man" value="{$item.link_man}"></td>
              </tr>
              <tr>
                <th>{lang contact_address}<span class="star">*</span></th>
                <td><input name="data[tradefield][address]" id="OfferAddress" type="text" value="{$item.address}" /></td>
              </tr>
              <tr>
                <th>{lang email_addr}<span class="star">*</span></th>
                <td><p class="gray"><input name="data[tradefield][email]" id="OfferEmail" type="text" value="{$item.email}" />&nbsp;{lang contact_required}</p></td> 
              </tr>
                <tr>
                <th>{lang company_name}</th>
                <td><input name="data[tradefield][company_name]" id="OfferAddress" type="text" value="{$item.company_name}" />
                <p class="gray">{lang inner_business_name}{$company_name}</p>
                <p class="gray">{lang no_company_should_name}</p>
                </td>
              </tr>
               <tr>
                <th>{lang preferred_tel}</th>
                <td><select name="data[tradefield][prim_tel]" id="OfferPrimTel">
                {html_options options=$PhoneTypes selected="1"}
              </select>{lang number}<input type="text" name="data[tradefield][prim_telnumber]" id="prim_telnumber" value="{$item.prim_telnumber}"></td>
              </tr>
               <tr>
                <th>{lang preferred_im}</th>
                <td><select name="data[tradefield][prim_im]">
                {html_options options=$ImTypes selected="1"}
              </select>{lang number}<input type="text" name="data[tradefield][prim_imaccount]" id="prim_imaccount" value="{$item.prim_imaccount}"></td>
              </tr>
              {if $ifcapt}
              <tr>
                <th>{lang code}</th>
                <td><a href="javascript:;" onclick="$('#imgcaptcha').attr('src','captcha.php?sid=' + Math.random());return false;"><img id="imgcaptcha" src="captcha.php?sid={$sid}"></a><p class="gray"><input type="text" name="data[capt_post_free]" id="VisitAuthNumber" value="">&nbsp;{lang enter_the_words_in_pic}</p></td>
              </tr>
              {/if}
              <tr>
                <th>&nbsp;</th>
                <td><input name="post" id="Post" type="submit" value="{lang immediate_release}" class="btn_submit" /><input name="reset" type="reset" value="{lang reset}"  class="btn_submit"/></td>
              </tr>
            </table>
          </form>  
        </div>
        </div>
    </div>    

<script>
var app_language = '{$AppLanguage}';
</script>
<script src="static/scripts/jquery/jquery.validate.js"></script>
<script src="static/scripts/validate.js" charset="{$Charset}"></script>
<script src="static/scripts/multi_select.js" charset="{$Charset}"></script>
<script src="static/scripts/script_area.js"></script>
<script src="static/scripts/script_industry.js"></script>
<script>
$("#SearchFrm").attr("action","index.php");
$("#topMenuOffer").addClass("search_tag_a");
</script>
{include file="footer.html"}