Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {exp:safecracker channel="{segment_2}" return="messages/new/{segment_2}/{segment_3}/{segment_4}" error_handling="inline" safecracker_head="no" rules:description="required|min_length[50]" rules:postcode="required|numeric|min_length[5]" rules:price="numeric|integer"}
- <div style="padding:20px">
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="title">Title</label>
- </div>
- <div style="float:left">
- <input type="text" name="title" id="title" value="{title}" size="30" maxlength="70" />
- {if error:title}
- <br/><span class="error">{error:title}</span>
- {/if}
- <br/><span>For best results, use clear and specific text.</span>
- </div>
- </div>
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="description">Description</label>
- </div>
- <div style="float:left">
- <textarea id="description" name="description" cols="75" rows="10">{description}</textarea>
- {if error:description}
- <br/><span class="error">{error:description}</span>
- {/if}
- </div>
- </div>
- {if segment_5 == "221"}
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="bedrooms">Bedrooms</label>
- </div>
- <div style="float:left">
- <!--this would be easier-->
- <!--{field:bedrooms}-->
- <select name="bedrooms" dir="ltr" id="bedrooms">
- <option value="any 1"{if '{bedrooms}' == 'any 1'} selected="selected"{/if}>1</option>
- <option value="any 2"{if '{bedrooms}' == 'any 2'} selected="selected"{/if}>2</option>
- <option value="any 3"{if '{bedrooms}' == 'any 3'} selected="selected"{/if}>3</option>
- <option value="any 4"{if '{bedrooms}' == 'any 4'} selected="selected"{/if}>4</option>
- <option value="any 5"{if '{bedrooms}' == 'any 5'} selected="selected"{/if}>5</option>
- <option value="any 6"{if '{bedrooms}' == 'any 6'} selected="selected"{/if}>6</option>
- <option value="any 7"{if '{bedrooms}' == 'any 7'} selected="selected"{/if}>7</option>
- <option value="any 8"{if '{bedrooms}' == 'any 8'} selected="selected"{/if}>8</option>
- <option value="any 9"{if '{bedrooms}' == 'any 9'} selected="selected"{/if}>9</option>
- </select>
- </div>
- </div>
- {/if}
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="price">Price</label>
- </div>
- <div style="float:left">
- <input type="text" id="price" name="price" value="{price}" maxlength="7" size="9" />
- {if error:price}
- <br/><span class="error">{error:price}</span>
- {/if}
- <br/><span>Example: 199 (no spaces, commas or euro signs)</span>
- </div>
- </div>
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="postcode">Postcode</label>
- </div>
- <div style="float:left">
- <input type="text" id="postcode" name="postcode" value="{postcode}" maxlength="5" size="7" />
- {if error:postcode}
- <br/><span class="error">{error:postcode}</span>
- {/if}
- <br/><span>Example: 50340</span>
- </div>
- </div>
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="photo1">Photo 1</label>
- </div>
- <div style="float:left">
- {field:photo1}
- </div>
- </div>
- <div style="border-bottom: 1px solid #EEE; overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
- <label for="photo2">Photo 2</label>
- </div>
- <div style="float:left">
- {field:photo2}
- </div>
- </div>
- <div style="overflow:hidden; padding:20px 0 20px 0">
- <div style="float:left; width:114px; margin-right:20px">
-
- </div>
- <div style="float:left">
- <blockquote></blockquote>
- <div class="inputContainer" id="submitContainer"><input type="submit" name="submit" value="I'm done! Post my classified."/></div>
- </div>
- </div>
- </div>
- {!-- DEPARTMENT --}
- <input type="hidden" id="department" name="department" value="{segment_3}" maxlength="128" size="50" />
- {!-- REGION --}
- <input type="hidden" id="region" name="region" value="{segment_2}" maxlength="128" size="50" />
- {!-- CLASSIFIED --}
- <input type="hidden" id="classified" name="classified" value="yes" maxlength="3" size="3" />
- {if segment_5 != "29"}
- {!-- BEDROOMS SET TO 0 SO THAT SEARCH 0+1+2+3+4+5+6+7+8+9 WORKS --}
- <input type="hidden" id="bedrooms" name="bedrooms" value="0" maxlength="1" size="1" />
- {/if}
- {!-- STATUS --}
- <input type="hidden" name="status" value="open" />
- <input type="hidden" name="allow_comments" value="y" />
- {!-- CATEGORIES --}
- <input type="hidden" name="category[]" value="{segment_5}" />
- {!-- ITEM CATEGORY URL TITLE --}
- <input type="hidden" id="category-url" name="category-url" value="{segment_4}" />
- {!-- ITEM CATEGORY DESCRIPTION --}
- <input type="hidden" id="category-description" name="category-description"
- {if segment_5 == "214"} value="For Sale: General" {/if}
- {if segment_5 == "215"} value="Wanted: General" {/if}
- {if segment_5 == "216"} value="Giveaways" {/if}
- {if segment_5 == "217"} value="Vehicles" {/if}
- {if segment_5 == "218"} value="Job Offers" {/if}
- {if segment_5 == "219"} value="Jobs Wanted" {/if}
- {if segment_5 == "220"} value="Pets and Animals" {/if}
- {if segment_5 == "221"} value="Property For Sale" {/if}
- {if segment_5 == "222"} value="Property wanted" {/if}
- {if segment_5 == "223"} value="Property For Rent" {/if}
- {/exp:safecracker}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement