Пример #1
0
                        //lwrefresh(window.selected_page);
                        $('#wallcontainer').load('<?php 
echo _SPPATH;
?>
loadDepartmentWall?klsid=<?php 
echo $klsid;
?>
&typ=<?php 
echo $typ;
?>
');
                    }
                    else {
                        alert(data.err);
                    }
                }, 'json');


            });
        </script>
<?php 
if ($targetClass == 'kelaswall') {
    ?>
    <div class="row">
        <?php 
    $fotoweb = new Fotoweb();
    $fotoweb->attachment($id, $targetClass);
    ?>
    </div>
<?php 
}
/<?php 
echo $method;
?>
?cmd=add&id=<?php 
echo $id;
?>
&klsid=<?php 
echo $klsid;
?>
&typ=<?php 
echo $typ;
?>
">
    <div class="form-group">
        <textarea class="form-control" name="c_text" rows="3"></textarea>
    </div>
    <button type="submit" class="btn btn-default"><?php 
echo Lang::t('Submit');
?>
</button>
</form>
<?php 
Ajax::ModalAjaxForm("commentform" . $id);
?>
<div class="row">
    <?php 
$fotoweb = new Fotoweb();
$fotoweb->attachment($id, "commentform");
?>
</div>
 public function getGallery($acc_id)
 {
     //pr($acc_id);
     $targetClass = "Account";
     $fotoweb = new Fotoweb();
     $target = $fotoweb->createTarget($acc_id, $targetClass);
     $fotoweb->getPicsReadOnly($target);
 }
Пример #4
0
    public function sendGallery()
    {
        $acc_id = isset($_GET['acc_id']) ? addslashes($_GET['acc_id']) : die('ACC id empty');
        $acc = new Account();
        $acc->getByID($acc_id);
        //pr($acc_id);
        ?>
        <h1><?php 
        echo $acc->getName();
        ?>
's <?php 
        echo Lang::t('Gallery');
        ?>
</h1>
        <?php 
        //global $c__Fotoajax; $c__Fotoajax->attachment($id,"sendGallery");
        $targetClass = "Account";
        $fotoweb = new Fotoweb();
        $fotoweb->attachment($acc_id, $targetClass);
    }