© Сделано на LiveStreet
Дизайн - ©2009 MODx RED Group
$id = $modx->documentIdentifier;
$dlist = $modx->db->query ('SELECT id, pagetitle FROM modx_site_content WHERE parent='.$id.' AND published=1');
$document_tvs = $modx->getTemplateVarOutput(true, $idd);
$templatevar_output = $document_tvs['total-results'];
[*img-news:phpthumbof=`w=65&h=65&zc=1`*]
$result = $modx->db->query('SELECT id, content FROM `modx2_albums` ' );
$res = $modx->db->makeArray($result);
echo '<pre>';
print_r($res);
echo '</pre>';
$(function(){
$('#div-id').load('js/file.html', function() {
});
});private function Import($f){
global $modx;
.......
$result = $modx->query('SELECT isfolder FROM '.$modx->getFullTableName('site_content').' WHERE id='.$dirId);
echo $modx->db->getValue($result);
.......
}
Fatal error: Call to undefined method DocumentParser::query() in F:\-=soft-install=-\-=Graphic_video_audio_html_editors=-\xamp\xampp\htdocs\modx\assets\modules\importer\include\controller.class.php on line 189<?php
$qwery="select id, description, isfolder from modx_site_content where parent=$id" ;
$result=mysql_query($qwery);
$row=mysql_fetch_array($result);
if($row[isfolder]=='1'){
$buffer=array();
while ($row=mysql_fetch_array($result)){
$qwery1="select id, description from modx_site_content where parent=$row[id]";
$result1=mysql_query($qwery1);
while ($row1=mysql_fetch_array($result1)){
$buffer[]=$row1[description];
};
};
}else{
$buffer=array();
while ($row=mysql_fetch_array($result)){
$buffer[]=$row[description];
};
}
$result=$buffer;
$result = array_unique($result);
foreach($result as $val)
{
if (!empty($val))
{
$ret_arr[] = trim($val);
}
}
foreach($ret_arr as $desc) {
echo "<option value='[~[*id*]~]?ditto_cat_tags=".$desc."'>".$desc."</option>";
}
?><?php
$result= $modx-> getChildIds (19);
$txt = $modx->getDocuments($result);
foreach ( $txt as $value) {
$new_array[]=$value[description];
}
$res = array_unique($new_array);
foreach($res as $val)
{
if (!empty($val))
{
$ret_arr[] = trim($val);
}
}
foreach ($ret_arr as $ret) {
echo $ret."<br />";
}
?>

<?php
$par = "$id";
$level=count($modx->getParentIds($par));
if ($level > 1) {
return $modx->runSnippet('Breadcrumbs',array('crumbSeparator'=>'>>>','showCurrentCrumb'=>'0'));
}
?>