Visualizzazione dei risultati da 1 a 2 su 2

Discussione: implementazione mods

  1. #1

    implementazione mods

    Salve ragazzi, ho acquistato un mods per il sito che utilizzo io, ma ho un problema.

    questa mods permette all'amministratore del sito di pubblicare annunci per conto degli utenti iscritti sul sito, quindi dal lato dell'amministrazione.

    Il problema sorge quando dal lato amministrativo devo inserire la "regione" (sicilia, lombardia, ect), in quanto dal front-end l'utente sceglie prima la regione da un menù a tendina poi spunta un altro menù a tendina con le prov. e con lo stesso sistema il comune.

    Come dicevo prima dal back-end questo non avviene, vi posto il codice del file che secondo me crea il problema!

    {if !$submit_ok}
    <h5 class="memberarea_caption">{$catname}</h5>
    {/if}
    <script language="javascript">
    xajax_myFunction('{$reg_2_value}');
    xajax_myFunction('{$reg_3_value}');
    </script>
    <table border="0" cellspacing="1" width="100%">
    <tr>
    <td width="100%" valign="top">


    {if $errorMsg}
    1. {$errorMsg}

    {/if}


    {if $submit_ok}

    {if $await_validation}


    {$smarty.const.LA_VALIDATION_WAIT}</p>
    {/if}


    <h5 class="memberarea_caption">{$smarty.const.LA_CHOOS E}</h5>
    <div style="clear:both;height:12px;"></div>

    {if $picture_upload_enable}


    <a href='{$url_to_upload}?pic_ad_id={$ad_id}' class="thumb">
    [img]{$url}/layout_images/new/images.gif[/img]
    </a>
    <a href='{$url_to_upload}?pic_ad_id={$ad_id}'>
    {$smarty.const.LA_I_WANT}</a>
    {/if}

    {if $set_video_upload}


    <a href='{$url_to_upload_video}?video_ad_id={$ad_id}' class="thumb">
    [img]{$url}/layout_images/new/film.gif[/img] </a>
    <a href='{$url_to_upload_video}?video_ad_id={$ad_id}' >
    {$smarty.const.LA_UPLOAD_VIDEO}</a>
    {/if}

    {if $set_doc_upload}




    <a href='{$url_to_upload_doc}?doc_ad_id={$ad_id}' class="thumb">
    [img]{$url}/layout_images/new/doc.gif[/img]
    </a>
    <a href='{$url_to_upload_doc}?doc_ad_id={$ad_id}'>
    {$smarty.const.LA_UPLOAD_DOC}</a>
    {/if}




    <a href='index.php' class="thumb">
    [img]{$url}/layout_images/new/home_icon.gif[/img]
    </a>{$smarty.const.LA_RET}



    <a href='choose_cat.php' class="thumb">
    [img]{$url}/layout_images/new/addad.gif[/img]
    </a>
    {$smarty.const.LA_ADD_AN}



    {/if}

    {if $pay_out_of_credits}
    <h4>{$smarty.const.LA_OUT_OF_CREDITS}</h4>
    {$smarty.const.LA_CREDITS_WARNING}

    {$smarty.const.LA_CREDITS_WARNING2}


    {$smarty.const.LA_VISIT_OUR} <u>{$smarty.const.LA_PAID_MEMBERSHIP}</u> {$smarty.const.LA_FOR_MORE_INFO}




    {/if}

    {if $show_form}

    {if $set_payments}
    <p style="background-color:white">
    {$smarty.const.LA_PAY_CREDITS_BAL} {$pay_free_credits} {$smarty.const.LA_PAY_CREDITS}

    {$smarty.const.LA_PAY_COST} {$pay_catcost} {$smarty.const.LA_PAY_CREDITS}
    </p>
    <div style="clear:both;height:12px;"></div>
    {/if}

    <form method='post' action='{$phpself}' name="itemForm">
    <input type='hidden' name='ad_id' value='{$ad_id}'>
    <input type='hidden' name='update_rq' value='{$update_rq}'>
    {if !$ad_id}
    <input type='hidden' name='catid' value='{$catid}'>
    {/if}


    <table border="0" cellpadding="1" cellspacing="1" width="100%">
    {if $user_id and $admin_area}<input name=user_id value='{$user_id}' type='hidden'>{/if}
    {if $admin_area and !$user_id and !$ad_id}
    <tr>
    <td width="30%" valign="top">Enter new user details:<span class="red">*</span></td>
    <td width="70%" valign="top">Name: <input name='new_user_name' value='' class="txt"> E-mail: <input name='new_user_email' value='' class="txt"></td>
    </tr>
    {/if}
    <tr>
    <td width="30%" valign="top">{$smarty.const.TITLE} <span class="red">*</span></td>
    <td width="70%" valign="top">
    <input type="text" name="ad_title" size="39" maxlength="150" class="txt" value="{$ad_title}">
    </td>
    </tr>


    {if $set_region==1 && !$admin_region_options}
    <tr>
    <td width="30%" valign="top">{$smarty.const.LA_REGION} <span class="red">*</span></td>
    <td width="70%" valign="top">
    <select id="reg_1" name="reg_1" onChange='xajax_myFunction(reg_1.value)' class='regionselect'>
    {$reg_1_options}
    </select>



    <div id="DropDown2"></div></p>


    <div id="DropDown3"></div></p>

    </td>
    </tr>
    {elseif $admin_region_options}
    <tr>
    <td width="30%" valign="top">{$smarty.const.LA_REGION} <span class="red">*</span></td>
    <td width="70%" valign="top">
    <select id="admin_region_selected" onChange='xajax_myFunction(reg_1.value)' name="admin_region_selected" class='regionselect'>
    {$admin_region_options}
    </select>
    </td>
    </tr>


    {/if}












    <tr>
    <td width="30%" valign="top">{$smarty.const.DESCRIPTION} <span class="red">*</span></td>
    <td width="70%" valign="top"><textarea rows="7" id="ad_description" name="ad_description" cols="45">{$ad_description}</textarea>

    </td>
    </tr>


    {foreach item=e from=$extra_fields_array}

    {if $e.q_catdescr}
    <tr><td colspan="2">
    {$e.q_catdescr}<hr style="color:black;" width="50%" align="left">
    </td></tr>
    {/if}

    <tr>
    <td valign="top">{$e.q_question} {if $e.q_mand}<span class="red">*</span>{/if}</td>
    <td valign="top">

    {if $e.q_type=="t"}

    <input type="text" name="e_{$e.q_field}" size="{$e.q_size}" value="{$e.q_value}" />

    {elseif $e.q_type=="p"}

    <input type="text" name="e_{$e.q_field}" size="7" value="{$e.q_value|replace:".":$decimal}" /> {$set_currency_text}

    {elseif $e.q_type=="d"}

    <textarea cols="{$e.q_size}" rows="{$e.q_size_2}" name="e_{$e.q_field}">{$e.q_value}</textarea>

    {elseif $e.q_type=="c"}
    {foreach item=opt from=$e.options}
    <input type="checkbox" name="e_{$e.q_field}[]" id="{$e.q_field}" value="{$opt.value}" {if $opt.selected_value} checked{/if}>
    {if $opt.$lang} {$opt.$lang|escape}{else}{$opt.text|escape}{/if}

    {/foreach}

    {elseif $e.q_type=="s"}
    <select name="e_{$e.q_field}" class="txt">
    {if $e.q_mand}
    <option value=''>--</option>
    {else}
    <option value='0'>{$smarty.const.LA_EMPTY}</option>
    {/if}
    {foreach item=opt from=$e.options}
    <option value="{$opt.value}"{if $opt.selected_value} selected{/if}>{if $opt.$lang} {$opt.$lang|escape}{else}{$opt.text|escape}{/if}</option>
    {/foreach}
    </select>

    {elseif $e.q_type=="r"}

    {foreach item=opt from=$e.options}
    <input type="radio" name="e_{$e.q_field}[]" id="{$e.q_field}" value="{$opt.value}" {if $opt.selected_value} checked{/if}>
    {if $opt.$lang} {$opt.$lang|escape}{else}{$opt.text|escape}{/if}

    {/foreach}


    {/if}



    </td>
    </tr>

    {/foreach}





    {if $ad_id}

    <tr>
    <td width="30%" valign="top">{$smarty.const.LA_CHANGE}</td>
    <td width="70%" valign="top"><select name='catid' class="txt">
    {$cat_list}
    </select>
    </td>
    </tr>

    {/if}


    {if $set_expire_days_option==1 && !$ad_id}
    <tr>
    <td width="30%" valign="top">{$smarty.const.LA_RUNDAYS} <font color=red>*</font></td>
    <td width="70%" valign="top"><select name="expire_days" class="txt">
    {$expire_list}
    </select>
    </td>
    </tr>
    {/if}


    <tr><td colspan="2">


    <input type='submit' name='submit' class='button' value='{$smarty.const.SUBMIT_BUTTON}'></p>
    </td>
    </tr>
    </table>
    </form>
    {/if}


    </td></tr></table>
    Guarda l'orizzonte, dalla parte opposta c'è qualcuno che guarda l'alba

  2. #2
    nessuno è in grado di aiutarmi?
    Guarda l'orizzonte, dalla parte opposta c'è qualcuno che guarda l'alba

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.