public function onLoad($param) { parent::onLoad($param); $list = $this->getPageList(dirname(__FILE__), ''); $this->List->DataSource = $list; $this->List->dataBind(); }
/** * Class constructor * Creates the page */ function __construct() { parent::__construct(); // create the form using TQuickForm class $this->form = new BootstrapFormWrapper(new TQuickForm()); $this->form->setFormTitle('cadastroTarefas'); // create the form fields $id = new TEntry('id'); $id->setEditable(FALSE); $description = new TEntry('titulo'); $list = new TCombo('prioridade'); $text = new TText('descricao'); $combo_items = array(); $combo_items['1'] = 'Baixa'; $combo_items['2'] = 'Media'; $combo_items['3'] = 'Alta'; $list->addItems($combo_items); // add the fields inside the form $this->form->addQuickField('Id', $id, 40); $this->form->addQuickField('Título', $description, 250); $this->form->addQuickField('Descrição', $text, 120); $this->form->addQuickField('Prioridade', $list, 120); $text->setSize(250, 50); // define the form action $btn = $this->form->addQuickAction('Save', new TAction(array($this, 'onSave')), 'fa:save'); $btn->class = 'btn btn-success'; $panel = new TPanelGroup('Cadastro de taredas'); $panel->add($this->form); // wrap the page content using vertical box $vbox = new TVBox(); $vbox->add($panel); parent::add($vbox); }
public function onInit($param) { parent::onInit($param); if (!$this->isPostBack) { switch ($this->Request['modus']) { case 0: $sql = "SELECT idtm_country, country_ful FROM tm_country"; $data = PFH::convertdbObjectArray(CountryRecord::finder()->findAllBySql($sql), array("idtm_country", "country_ful")); $this->Country->DataSource = $data; $this->Country->dataBind(); $this->idta_partei->Data = $this->Request['idta_partei']; break; case 1: $sql = "SELECT idtm_country, country_ful FROM tm_country"; $data = PFH::convertdbObjectArray(CountryRecord::finder()->findAllBySql($sql), array("idtm_country", "country_ful")); $this->edCountry->DataSource = $data; $this->edCountry->dataBind(); $this->fillValues($this->getSelected($this->Request['idta_adresse'])); break; default: break; } $this->viewPanel->ActiveViewIndex = $this->Request['modus']; } }
public function onLoad($param) { parent::onLoad($param); date_default_timezone_set('Europe/Berlin'); if (!$this->IsPostBack || !$this->IsCallBack) { $sql = "SELECT idta_organisation_type, org_type_name FROM ta_organisation_type"; $data = PFH::convertdbObjectArray(OrganisationTypeRecord::finder()->findAllBySql($sql), array("idta_organisation_type", "org_type_name")); $this->RCedidta_organisation_type->DataSource = $data; $this->RCedidta_organisation_type->dataBind(); $this->RCedidta_organisation_art->DataSource = $this->idta_organisation_art; $this->RCedidta_organisation_art->dataBind(); $this->RCedorg_idtm_user_role->DataSource = PFH::build_SQLPullDown(UserRoleRecord::finder(), "tm_user_role", array("idtm_user_role", "user_role_name")); $this->RCedorg_idtm_user_role->dataBind(); $this->RCedidta_branche->DataSource = PFH::build_SQLPullDown(BrancheRecord::finder(), "ta_branche", array("idta_branche", "bra_name")); $this->RCedidta_branche->dataBind(); $this->RCedidtm_ressource->DataSource = PFH::build_SQLPullDown(RessourceRecord::finder(), "tm_ressource", array("idtm_ressource", "res_name")); $this->RCedidtm_ressource->dataBind(); $this->RCedidtm_country->DataSource = PFH::build_SQLPullDown(CountryRecord::finder(), "tm_country", array("idtm_country", "country_iso")); $this->RCedidtm_country->dataBind(); $this->RCedkom_type->DataSource = array(1 => "Telefon", "Fax", "Mail"); $this->RCedkom_type->dataBind(); $this->RCedorg_status->DataSource = array(0 => "offen", "interessant", "nicht interessant", "Kunde", "EX-Kunde"); $this->RCedorg_status->dataBind(); if (isset($_GET['idtm_organisation'])) { $this->view_Organisation($_GET['idtm_organisation']); } else { $this->view_Organisation(1); } //$this->bindListOrgListe(); } }
/** * Class constructor * Creates the page */ function __construct() { parent::__construct(); // loads the galleria javascript library TPage::include_js('app/lib/jquery/galleria/galleria-1.2.2.min.js'); // creates a table $table = new TTable(); // creates the DIV element with the images $galleria = new TElement('div'); $galleria->id = 'images'; $galleria->style = "width:600px;height:460px"; for ($n = 1; $n <= 4; $n++) { $img = new TElement('img'); $img->src = "app/images/nature/nature{$n}.jpg"; $galleria->add($img); } // add the DIV to the table $table->addRow()->addCell($galleria); // creates the script element $script = new TElement('script'); $script->type = 'text/javascript'; $script->add(' Galleria.loadTheme("app/lib/jquery/galleria/themes/classic/galleria.classic.min.js"); $("#images").galleria(); '); // add the script to the table $table->addRow()->addCell($script); // wrap the page content using vertical box $vbox = new TVBox(); $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__)); $vbox->add($table); parent::add($vbox); }
public function onLoad($param) { parent::onLoad($param); if (!$this->IsPostBack) { $this->setViewState("clicks", 0); } }
function OnInit($param) { parent::onInit($param); include "config.php"; $repositoryid = $_GET['RepositoryID']; $results = $this->Module->Database->Execute("SELECT * FROM repositories WHERE id=" . makeSqlString($repositoryid)); $fields = $results->fields; $ownerid = $fields['ownerid']; $name = $fields['name']; if (!$this->User->isAdmin() && $this->User->getId() != $ownerid) { echo "Not enough rights to change this repository!"; exit(-1); } $filename = $name . ".dump"; if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/MSIE/", $_SERVER['HTTP_USER_AGENT'])) { // IE Bug in download name workaround error_log("ini_set"); ini_set('zlib.output_compression', 'Off'); } header('Cache-Control:'); header('Pragma:'); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"{$filename}\""); header("Content-Transfer-Encoding: binary"); passthru($svnadmin_cmd . " dump " . $svn_repos_loc . DIRECTORY_SEPARATOR . $name); exit(0); //$this->Application->transfer('Repository:AdminPage'); }
public function onLoad($param) { parent::onLoad($param); if (!$this->isPostBack && !$this->isCallback) { $this->clearLog(null, null); } }
public function __construct() { parent::__construct(); try { TTransaction::open('samples'); // abre uma transação // cria novo objeto $giovani = new Customer(); $giovani->name = 'Giovanni Dall Oglio'; $giovani->address = 'Rua da Conceicao'; $giovani->phone = '(51) 8111-2222'; $giovani->birthdate = '2013-02-15'; $giovani->status = 'S'; $giovani->email = '*****@*****.**'; $giovani->gender = 'M'; $giovani->category_id = '1'; $giovani->city_id = '1'; $giovani->store(); // armazena o objeto new TMessage('info', 'Objeto armazenado com sucesso'); TTransaction::close(); // fecha a transação. } catch (Exception $e) { new TMessage('error', $e->getMessage()); } }
public function onLoad($param) { parent::onLoad($param); $checkNewsletter = nNewsletterRecord::finder()->findByStatus(1); if ($checkNewsletter) { $layout = nLayoutRecord::finder()->findBy_nNewsletterID($checkNewsletter->ID); $mail = new PHPMailer(); $mail->isSendmail(); $mail->setFrom('*****@*****.**', 'First Last'); $mail->addReplyTo('*****@*****.**'); $lista = nSenderRecord::finder()->findAll('nLayoutID = ? AND Status = 0 LIMIT 25', $layout->ID); foreach ($lista as $person) { $mail->addAddress($person->Email); $mail->Subject = $checkNewsletter->Name; $mail->msgHTML($layout->HtmlText); if ($mail->send()) { $person->Status = 1; $person->save(); } else { $person->Status = 5; $person->save(); echo "Mailer Error: " . $mail->ErrorInfo; } } if (empty($lista)) { $checkNewsletter->Status = 0; $checkNewsletter->save(); } } die; }
/** * Class constructor * Creates the page and the registration form */ function __construct() { parent::__construct(); // creates the notebook $this->notebook = new TNotebook(); $this->notebook->setSize(400, 170); // creates the form $this->form = new TQuickForm('form_account'); $this->notebook->appendPage('Personal details', $this->form); // create the form fields $email = new TEntry('email'); $first_name = new TEntry('first_name'); $last_name = new TEntry('last_name'); $phone = new TEntry('phone'); $email->setEditable(FALSE); // add the fields $this->form->addQuickField('Email: ', $email, 200); $this->form->addQuickField('First name: ', $first_name, 200); $this->form->addQuickField('Last name: ', $last_name, 200); $this->form->addQuickField('Phone: ', $phone, 200); // validations $first_name->addValidation('First name', new TRequiredValidator()); $last_name->addValidation('Last name', new TRequiredValidator()); $phone->addValidation('Phone', new TRequiredValidator()); // add a form action $this->form->addQuickAction('Confirm', new TAction(array($this, 'onConfirm')), 'ico_apply.png'); $this->form->addQuickAction('Back', new TAction(array($this, 'onBackForm')), 'ico_back.png'); // add the form to the page parent::add($this->notebook); }
public function onPreRender($param) { parent::onPreRender($param); if (trim($this->_status)) { $this->label1->Text = $this->_status; } }
/** * Class constructor * Creates the page */ function __construct() { parent::__construct(); // create the form using TQuickForm class $this->form = new TQuickForm('form_dynamic_filter'); // create the notebook $notebook = new TNotebook(530, 160); // adds the notebook page $notebook->appendPage('Dynamic filtering', $this->form); $check_gender = new TCheckGroup('check_gender'); $check_gender->addItems(array('M' => 'Male', 'F' => 'Female')); $check_gender->setLayout('horizontal'); $combo_status = new TCombo('combo_status'); $combo_status->addItems(array('S' => 'Single', 'C' => 'Committed', 'M' => 'Married')); $combo_customers = new TCombo('customers'); // add the fields inside the form $this->form->addQuickField('Load customers: ', $check_gender, 200); $this->form->addQuickField('', $combo_status, 200); $this->form->addQuickField('', $combo_customers, 200); $check_gender->setChangeAction(new TAction(array($this, 'onGenderChange'))); $combo_status->setChangeAction(new TAction(array($this, 'onGenderChange'))); // wrap the page content using vertical box $vbox = new TVBox(); $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__)); $vbox->add($notebook); parent::add($vbox); }
public function onLoad($param) { parent::onLoad($param); if (!$this->isPostBack and !$this->isCallBack) { $this->Lbl->setText(date("h:m:s")); } }
public function onLoad($param) { parent::onLoad($param); $handler = $this->Application->getErrorHandler(); $this->ErrorCode->setText($handler->getErrorCode()); $this->ErrorMessage->setText($handler->getErrorMessage()); }
public function __construct() { parent::__construct(); $this->form = new TQuickForm(); $this->form->class = 'tform'; $this->form->setFormTitle(_t('Profile')); $name = new TEntry('name'); $login = new TEntry('login'); $email = new TEntry('email'); $password1 = new TPassword('password1'); $password2 = new TPassword('password2'); $login->setEditable(FALSE); $this->form->addQuickField(_t('Name'), $name, '80%', new TRequiredValidator()); $this->form->addQuickField(_t('Login'), $login, '80%', new TRequiredValidator()); $this->form->addQuickField(_t('Email'), $email, '80%', new TRequiredValidator()); $table = $this->form->getContainer(); $row = $table->addRow(); $row->style = 'background: #FFFBCB;'; $cell = $row->addCell(new TLabel(_t('Change password') . ' (' . _t('Leave empty to keep old password') . ')')); $cell->colspan = 2; $this->form->addQuickField(_t('Password'), $password1, '80%'); $this->form->addQuickField(_t('Password confirmation'), $password2, '80%'); $this->form->addQuickAction(_t('Save'), new TAction(array($this, 'onSave')), 'fa:save'); $bc = new TBreadCrumb(); $bc->addHome(); $bc->addItem('Profile'); $container = TVBox::pack($bc, $this->form); $container->style = 'width:80%'; parent::add($container); }
public function onLoad($param) { parent::onLoad($param); if (!$this->IsPostBack && !$this->IsCallback) { $this->resetClicked(null, null); } }
public function __construct() { parent::__construct(); // show the message dialog new TMessage('error', 'Error message'); parent::add(new TXMLBreadCrumb('menu.xml', __CLASS__)); }
function __construct() { parent::__construct(); // create the form using TQuickForm class $this->form = new TQuickForm(); $this->form->class = 'tform'; $this->form->setFormTitle('Formas de Pagamentos'); $combo = new TCombo('pagamento'); $combo_items = array(); $combo_items['a'] = 'Cartão de Crédito Visa'; $combo_items['b'] = 'Cartão de Crédito Mastercard'; $combo_items['c'] = 'Ticket Vale Refeição'; $combo_items['d'] = 'PagSeguro'; $combo_items['e'] = 'PayPal'; $combo_items['f'] = 'DriverCoins'; $combo->addItems($combo_items); $this->form->addQuickField('Forma de Pagamentos', $combo, 500); $this->form->addQuickAction('Salvar', new TAction(array($this, 'onSave')), 'ico_save.png'); // wrap the page content using vertical box $vbox = new TVBox(); $vbox->style = 'width: 100%'; $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__)); $vbox->add($this->form); parent::add($vbox); }
/** * Class constructor * Creates the page and the registration form */ function __construct() { parent::__construct(); // creates the notebook $this->notebook = new TNotebook(); $this->notebook->setSize(400, 140); // creates the form $this->form = new TQuickForm('form_account'); $this->notebook->appendPage('Create account', $this->form); // create the form fields $email = new TEntry('email'); $password = new TPassword('password'); $confirm = new TPassword('confirm'); $this->form->addQuickField('Email: ', $email, 200); $this->form->addQuickField('Password: '******'Confirm password: '******'Email', new TRequiredValidator()); $email->addValidation('Email', new TEmailValidator()); $password->addValidation('Password', new TRequiredValidator()); $confirm->addValidation('Confirm password', new TRequiredValidator()); // add a form action $this->form->addQuickAction('Next', new TAction(array($this, 'onNextForm')), 'ico_apply.png'); // add the form to the page parent::add($this->notebook); }
/** * Class constructor * Creates the page and the registration form */ function __construct() { parent::__construct(); // creates the form $this->form = new TForm(); try { // UIBuilder object $ui = new TUIBuilder(500, 400); $ui->setController($this); $ui->setForm($this->form); // reads the xml form $ui->parseFile('app/forms/containers.form.xml'); // add the TUIBuilder panel inside the form $this->form->add($ui); // set the form fields from the interface $this->form->setFields($ui->getFields()); } catch (Exception $e) { new TMessage('error', $e->getMessage()); } // wrap the page content using vertical box $vbox = new TVBox(); $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__)); $vbox->add($this->form); parent::add($vbox); }
public function onLoad($param) { parent::onLoad($param); if (!$this->IsPostBack) { $this->datepicker->setTimeStamp(time()); } }
/** * Class Constructor * @param $type Type of the message (info, error) * @param $message Message to be shown * @param $action Action to process */ public function __construct($type, $message, TAction $action = NULL) { $this->id = uniqid(); if (!is_null($action)) { $this->action = '__adianti_load_page(\'' . $action->serialize() . '\');'; } if (TPage::isMobile()) { $img = new TElement('img'); $img->src = "lib/adianti/images/{$type}.png"; $table = new TTable(); $table->width = '250px'; $table->bgcolor = '#E5E5E5'; $table->style = "border-collapse:collapse"; $row = $table->addRow(); $row->addCell($img); $row->addCell($message); $table->show(); } else { TPage::include_css('lib/adianti/include/tmessage/tmessage.css'); // creates a pannel to show the dialog $painel = new TElement('div'); $painel->{'class'} = 'tmessage'; $painel->id = 'tmessage_' . $this->id; // creates a table for layout $table = new TTable(); // creates a row for the icon and the message $row = $table->addRow(); $row->addCell(new TImage("lib/adianti/images/{$type}.png")); $scroll = new TScroll(); $scroll->setSize(350, 70); $scroll->add($message); $scroll->setTransparency(true); $cell = $row->addCell($scroll); // add the table to the pannel $painel->add($table); // show the pannel $painel->show(); $script = new TElement('script'); $script->{'type'} = 'text/javascript'; $script->add(' $(function() { $( "#' . $painel->id . '" ).dialog({ height: 180, width: 440, stack: false, zIndex: 3000, modal: true, buttons: { OK: function() { $( this ).dialog( "close" ); ' . $this->action . ' } } }).css("visibility", "visible"); $( "#' . $painel->id . ' a" ).click(function () { window.open($(this).attr(\'href\')); }); });'); $script->show(); } }
public function __construct() { parent::__construct(); try { // connection info $db = array(); $db['host'] = ''; $db['port'] = ''; $db['name'] = 'app/database/samples.db'; $db['user'] = ''; $db['pass'] = ''; $db['type'] = 'sqlite'; TTransaction::open(NULL, $db); // open transaction $conn = TTransaction::get(); // get PDO connection // make query $result = $conn->query('SELECT id, name from customer order by id'); // iterate results foreach ($result as $row) { print $row['id'] . '-'; print $row['name'] . "<br>\n"; } TTransaction::close(); // close transaction } catch (Exception $e) { new TMessage('error', $e->getMessage()); } }
public function onLoad($param) { parent::onLoad($param); $this->dbConexion = Conexion::getConexion($this->Application, "dbpr"); Conexion::createConfiguracion(); $fechaInicial = $_REQUEST['id']; $fechafinal = $_REQUEST['id2']; $fecha_actual = date("Y-m-d H:i:s"); $this->lblfechaActual->Text = $fecha_actual; $this->lblfechaInicial->Text = $fechaInicial; $this->lblfechafinal->Text = $fechafinal; $consulta = "SELECT sum(diferencia) AS saldoFinalTotal_1 FROM repdetallemovtos"; $comando = $this->dbConexion->createCommand($consulta); $resultado = $comando->query()->readAll(); $this->lblsaldoFinalTotal->Text = $resultado[0]["saldoFinalTotal_1"]; $this->mostrarDatosGriddetalle_movtos(); $consulta = " SELECT sum(totalSemana) as totalSemana, sum(totalQuincena) as totalQuincena, sum(totalActivos) as totalActivos, sum(totalJubilados) as totalJubilados, sum(granTotal) as granTotal FROM Desglose_abonos"; $comando = $this->dbConexion->createCommand($consulta); $resultado = $comando->query()->readAll(); $this->lblTotalSemanas->Text = $resultado[0]["totalSemana"]; $this->lblTotalquicena->Text = $resultado[0]["totalQuincena"]; $this->lblTotalactivos->Text = $resultado[0]["totalActivos"]; $this->lblTotalJubilados->Text = $resultado[0]["totalJubilados"]; $this->lblSubTotal->Text = $resultado[0]["granTotal"]; $this->mostrarDatosGridNomina(); $this->mostrarDatosGridMovimiento8(); //$this->mostrarDatosGriddetalle_desglose (); }
/** * Class constructor * Creates the page */ function __construct() { parent::__construct(); $this->form = new TForm(); $list1 = new TSortList('list1'); $list2 = new TSortList('list2'); $list1->addItems(array('1' => 'One', '2' => 'Two', '3' => 'Three')); $list2->addItems(array('a' => 'A', 'b' => 'B', 'c' => 'C')); $list1->setSize(200, 100); $list2->setSize(200, 100); $list1->connectTo($list2); $list2->connectTo($list1); // creates the action button $button1 = new TButton('action1'); $button1->setAction(new TAction(array($this, 'onSave')), 'Save'); $button1->setImage('ico_save.png'); $table = new TTable(); $row = $table->addRow(); $row->addCell($list1); $row->addCell($list2); $table->addRow()->addCell($button1); $this->form->setFields(array($list1, $list2, $button1)); $this->form->add($table); // wrap the page content using vertical box $vbox = new TVBox(); $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__)); $vbox->add($this->form); parent::add($vbox); }
public function onLoad($param) { parent::onLoad($param); $this->dbConexion = Conexion::getConexion($this->Application, "db"); Conexion::createConfiguracion(); if (!$this->IsPostBack) { if (isset($this->Request["nota"])) { $subtotal = Conexion::Retorna_Campo($this->dbConexion, "notas_productos", "SUM(precio * cantidad)", array("id_nota" => $this->Request["nota"])); $datos_nota = Conexion::Retorna_Registro($this->dbConexion, "notas", array("id_nota" => $this->Request["nota"])); if ($datos_nota[0]["vales"] > 0) { $vale = Conexion::Retorna_Campo($this->dbConexion, "parametros", "valor", array("llave" => "vale")); $descuento = $vale * $datos_nota[0]["vales"]; } else { $descuento = $subtotal * $datos_nota[0]["descuento"] / 100; } $this->lblNota->Text = $this->Request["nota"]; $this->lblSubtotal->Text = $subtotal; $this->lblDescuento->Text = $descuento; $this->lblTotal->Text = $subtotal - $descuento; $this->Master->Page->Title = "Nota " . $this->Request["nota"]; $consulta = "SELECT p.Descripcion, np.Cantidad, np.Precio, np.cantidad * np.precio AS Total " . "FROM productos p JOIN notas_productos np ON p.id_producto = np.id_producto " . "WHERE np.id_nota = :id_nota"; $comando = $this->dbConexion->createCommand($consulta); $comando->bindValue(":id_nota", $this->Request["nota"]); $resultado = $comando->query()->readAll(); $this->dgProductos->DataSource = $resultado; $this->dgProductos->dataBind(); } } }
public function __construct() { parent::__construct(); try { TTransaction::open('samples'); // open transaction // create a new object $giovani = new Customer(); $giovani->name = 'Giovanni Dall Oglio'; $giovani->address = 'Rua da Conceicao'; $giovani->phone = '(51) 8111-2222'; $giovani->birthdate = '2013-02-15'; $giovani->status = 'S'; $giovani->email = '*****@*****.**'; $giovani->gender = 'M'; $giovani->category_id = '1'; $giovani->city_id = '1'; $giovani->store(); // store the object new TMessage('info', 'Objeto stored successfully'); TTransaction::close(); // Closes the transaction } catch (Exception $e) { new TMessage('error', $e->getMessage()); } }
public function onPreInit($param) { parent::onPreInit($param); $docname = "tempXML"; $ext = "xml"; $header = "application/xml"; $doc = new TXmlDocument('1.0', 'ISO-8859-1'); $doc->TagName = 'menu'; $doc->setAttribute('id', "0"); $QVFile = new TXmlElement('item'); $QVFile->setAttribute('id', "new_Element"); $QVFile->setAttribute('img', "plus5.gif"); $QVFile->setAttribute('text', "new element"); $ActivityElements = ActivityTypeRecord::finder()->findAll(); foreach ($ActivityElements as $Activitytype) { $ST = new TXmlElement('item'); $ST->setAttribute('id', $Activitytype->idta_activity_type); $ST->setAttribute('img', 's' . $Activitytype->idta_activity_type . ".gif"); $ST->setAttribute('text', utf8_encode($Activitytype->act_type_name)); //hier muss die logik fuer die basiswerte aus den dimensionen hin... //hier hole ich mir die Dimensionsgruppen $QVFile->Elements[] = $ST; } $doc->Elements[] = $QVFile; // $CMdelete=new TXmlElement('item'); // $CMdelete->setAttribute('id',"delete_Element"); // $CMdelete->setAttribute('img',"minus.gif"); // $CMdelete->setAttribute('text',"delete element"); // // $doc->Elements[]=$CMdelete; $this->getResponse()->appendHeader("Content-Type:" . $header); $this->getResponse()->appendHeader("Content-Disposition:inline;filename=" . $docName . '.' . $ext); $doc->saveToFile('php://output'); exit; }
public function onLoad($param) { parent::onLoad($param); if (!$this->User->IsAdmin()) { return; } require "config.php"; $data = array(); /* ** 2006-04-06 PDurden - Walk through the files in the repository ** location. If the file is a directory, check to see if the repository ** name exists. If the name does not exist, then add it to the data ** array */ if ($handle = opendir($svn_repos_loc)) { while (false !== ($dir = readdir($handle))) { if ($dir != "." && $dir != "..") { $file = $svn_repos_loc . DIRECTORY_SEPARATOR . $dir; if (is_dir($file)) { if (!$this->Module->repositoryExists($dir)) { $data[] = array('repositoryname' => $dir); } } } } closedir($handle); } $this->RepositoryTable->setDataSource($data); $this->RepositoryTable->dataBind(); }