.id
3500
.gutitle
qa_new_ad
.title
qa_new_ad
.file
.extension
.name
|/routinetype-generic|
.user_id
7
.notes
.body
<if client_id LTE 1 OR site_gutitle NEQ "iqtpi">
<goto url="http://iqtpi.com/?&kalkalash=New_Ad">
<BREAK>
</if>


<tag.unit_css>
<style type="text/css">
.unit_note { font-size:0.72em; color:#GLOBAL.Def.Style.color.g3#; }
.unit_left { font-size:1em; padding-top:0.16em; font-weight:bold; }
.unit_right input { font-size:1em; padding:0.2em; }
</style>

<div style="padding-left:1em; width:540px;"><postform>

<postsuccess>
<var _idnum = POST_N.n1.status>
<!--- uname. --->
<update orb="ad" where="ad.id = #_idnum#" uname="#client_name#">
<tag.ping function="post"
jstr="/ad-#_idnum#"
users_intList="#GLOBAL.Def.Friends.intList#,#GLOBAL.Def.Followers.intList#"
message="#client_firstname# created a new ad"
send_email="1">
<if return NEQ "pants">
<goto url="http://#this_domain#/j:/ad-#_idnum#">
</if>
<BREAK>
</postsuccess>

<postneutral>
<h4 style="padding:2px; border-bottom:1px solid #GLOBAL.Def.Style.color.pri#;">Create a new ad on iqtpi</h4>

<div class="unit">
<div class="unit_left">
Ad Text:
</div>
<div class="unit_right">
<div>
<input name="1_title" id="1_title" style="width:90%;" autocomplete="off">
</div>
<div class="unit_note">
Example:
<var _x = randRange(1,5)>
<if _x EQ 1>
"New Halloween Double-Stuff Oreos are Available Now!!!"
<elseif _x EQ 2>
"Try Barnum's Animal Crackers: Special Limited-Time Offer!"
<elseif _x EQ 3>
"Free Dog when You Buy Two or More Cats."
<elseif _x EQ 4>
"Buy Two Large Pizzas and Get a Third for Free!"
<else>
"Try Mom Wilson's Ham Today!"
</if>
<br>Limit <span id="remaining_chars">140</span> characters.
</div>
</div>
</div>

<div class="unit">
<div class="unit_left">
Ad Picture:
</div>
<div class="unit_right">
<div>
<input name="1_file" type="file">
</div>
<div class="unit_note">
Upload a <b>jpg</b> or <b>png</b> file that is smaller than 10mb in size.
<br>For best results, upload a picture that is <b>360 px</b> wide and <b>240 px</b> tall.
</div>
</div>
</div>

<div class="unit">
<div class="unit_left">
Ad URL:
</div>
<div class="unit_right">
<div>
<input name="1_body" style="width:90%;" autocomplete="off">
</div>
<div class="unit_note">
Example: <b>http://mysite.com/promo_page</b>
<br>This is where users will be taken when they click on your ad.
</div>
</div>
</div>

<if GLOBAL.Def.iqtpi_age_num EQ 1>
<input type="hidden" style="display:none;" name="1_iqtpi_age_num_double" value="1">
<else>
<div class="unit">
<div class="unit_left">
Age Type:
</div>
<div class="unit_right">
<div>
<select id="1_iqtpi_age_num_double" name="1_iqtpi_age_num_double">
<if GLOBAL.Def.iqtpi_age_num GT 2>
<option value="3">Grown Ups and Way Grown Ups Only</option>
</if>
<if GLOBAL.Def.iqtpi_age_num GT 1>
<option value="2">Teens and older</option>
</if>
<option value="1">All Ages</option>
</select>
</div>
<div class="unit_note">
Who should be able to view this question?
<br><b>You will not be able to change this later.</b>
</div>
</div>
</div>
</if>

<div class="unit" style="padding-top:7px;">
<div class="unit_left">
&nbsp;
</div>
<div class="unit_right">
<div align="right" style="padding-right:7.86%;">
<input type="submit" value="Save &amp; Continue &gt;" style="cursor:pointer; font-size:1.24em;">
</div>
</div>
</div>

<div style="border-top:1px solid #GLOBAL.Def.Style.color.pri#;">&nbsp;</div>

<input type="hidden" style="display:none;" name="1_posttype" value="INSERT">
<input type="hidden" style="display:none;" name="1_orb" value="ad">

<tag.jquery>
<script type="text/javascript">
$(document).ready(function() {
$('##1_title').bind('keyup change blur', function() {
var _v = $(this).val();
if (_v.length > 140) {
var _v = _v.substr(0,140);
$(this).val(_v);
}
var _remaining = (140 - _v.length);
if (_remaining == 0) {
var _color = 'red';
}
else {
var _color = '#GLOBAL.Def.Style.color.text#';
}
$('##remaining_chars').html('<b style="color:' + _color + ';">' + _remaining + '</b>');
});
$('##1_title').focus();
});
</script>

</postneutral>

</postform></div>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0