Сирожиддин
BestMaker, # BestMaker (27.09.2017 / 01:21)
Ro'yxatdan o'tish sahifasiga shahar malumotini yozib ro'yxatdan o'tish kodini yozinglar biladiganlar
'tuman'ni 'live' qilsangiz ham bo'ladi, shunda standart johncms bazasi bilan ishlaydi.
  1. echo '<select name="tuman" value="' . $user['tuman'] . '" class="textfield">
  2. <option ' . ($user['tuman'] == 'Andijon viloyati' ? ' selected="selected"' : '') . '>Andijon viloyati</option>
  3. <option ' . ($user['tuman'] == 'Buxoro viloyati' ? ' selected="selected"' : '') . '>Buxoro viloyati</option>
  4. <option ' . ($user['tuman'] == 'Farg\'ona viloyati' ? ' selected="selected"' : '') . ' value="Farg\'ona viloyati">Farg‘ona viloyati</option>
  5. <option ' . ($user['tuman'] == 'Jizzax viloyati' ? ' selected="selected"' : '') . '>Jizzax viloyati</option>
  6. <option ' . ($user['tuman'] == 'Xorazm viloyati' ? ' selected="selected"' : '') . '>Xorazm viloyati</option>
  7. <option ' . ($user['tuman'] == 'Namangan viloyati' ? ' selected="selected"' : '') . '>Namangan viloyati</option>
  8. <option ' . ($user['tuman'] == 'Navoiy viloyati' ? ' selected="selected"' : '') . '>Navoiy viloyati</option>
  9. <option ' . ($user['tuman'] == 'Qashqadaryo viloyati' ? ' selected="selected"' : '') . '>Qashqadaryo viloyati</option>
  10. <option ' . ($user['tuman'] == 'Qoraqalpogiston Respublikasi' ? ' selected="selected"' : '') . ' value="Qoraqalpog\'iston Respublikasi">Qoraqalpog‘iston Respublikasi</option>
  11. <option ' . ($user['tuman'] == 'Samarqand viloyati' ? ' selected="selected"' : '') . '>Samarqand viloyati</option>
  12. <option ' . ($user['tuman'] == 'Sirdaryo viloyati' ? ' selected="selected"' : '') . '>Sirdaryo viloyati</option>
  13. <option ' . ($user['tuman'] == 'Surxondaryo viloyati' ? ' selected="selected"' : '') . '>Surxondaryo viloyati</option>
  14. <option ' . ($user['tuman'] == 'Toshkent viloyati' ? ' selected="selected"' : '') . '>Toshkent viloyati</option>
  15. <option ' . ($user['tuman'] == 'Toshkent shahri' ? ' selected="selected"' : '') . '>Toshkent shahri</option>
  16. </select>';