© Сделано на LiveStreet
Дизайн - ©2009 MODx RED Group
SELECT id,pagetitle
FROM `poteriahki_db`.`modx_site_content`
WHERE id in
(select contentid from `poteriahki_db`.`modx_site_tmplvar_contentvalues`
WHERE (tmplvarid=32 and value='y')
OR (tmplvarid=34 and value='Нужен хозяин')) AND parent=57
ORDER BY pagetitle DESC<select tabindex="[+jot.seed:math=`?+3`+]" name="ort" id="ort[+jot.id+]" size="2">
<option value="[+form.field.custom.vote:esc+]">one or</option>
<option value="[+form.field.custom.vote:esc+]">another</option>
</select>value="[+form.field.custom.anything+]valueitshouldhave"
<select name="goroda" eform_options="город::0::">
<option value="выбрать" disabled="disabled" selected="selected">[ выбрать город ]</option>
<option value="9">Винница
</option><option value="10">Жмеринка
</option>...
<select onChange="javaspript:" id="selectYear"></select>//attribute values are stored including quotes
//strip quotes as well as any brackets to get the raw name
$name = str_replace(array("'",'"','[',']'),'',$tagAttributes['name']);
if (empty($name)) continue;