This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __sql__(){ | |
$userid = 0; | |
$agency_id=0; | |
$user = getUser(); | |
if ( $user ){ | |
$userid = $user->val('user_id'); | |
$agency_id = $user->val('organization_id'); | |
} else { | |
$agency_id = Dataface_Application::getInstance()->getDelegate()->organizationID; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ca.weblite.offlinemaps.demo; | |
import ca.weblite.codename1.mapbox.MBTilesProvider; | |
import com.codename1.io.ConnectionRequest; | |
import com.codename1.io.Log; | |
import com.codename1.io.NetworkManager; | |
import com.codename1.maps.MapComponent; | |
import com.codename1.ui.Button; | |
import com.codename1.ui.Display; | |
import com.codename1.ui.Form; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class conf_ApplicationDelegate { | |
function beforeHandleRequest(){ | |
Dataface_Application::getInstance() | |
->addHeadContent('<link rel="stylesheet" type="text/css" href="style.css"/>'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div#top-search-form {display:none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class conf_ApplicationDelegate { | |
function beforeHandleRequest(){ | |
$app = Dataface_Application::getInstance(); | |
$query = $app->getQuery(); | |
$app->addHeadContent('<link rel="stylesheet" type="text/css" href="style.css"/>'); | |
if ( $query['-table'] == 'dashboard' ){ | |
$app->addHeadContent('<link rel="stylesheet" type="text/css" href="dashboard.css"/>'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class conf_ApplicationDelegate { | |
function beforeHandleRequest(){ | |
$app = Dataface_Application::getInstance(); | |
$query = $app->getQuery(); | |
$app->addHeadContent('<link rel="stylesheet" type="text/css" href="style.css"/>'); | |
} | |
function block__body_atts(){ | |
$css_classes = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.table-dashboard div#top-search-form, | |
body.table-foobar div#top-search-form | |
{ display:none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class tables_mytable { | |
function afterSave(Dataface_Record $record){ | |
if ( $record->val('status') === 'Broken' ){ | |
mail(ADMIN_EMAIL, 'Something is broken', '...'); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class tables_mytable { | |
function afterSave(Dataface_Record $record){ | |
if ( $record->valueChanged('status') and $record->val('status') === 'Broken' ){ | |
mail(...); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class tables_mytable { | |
function beforeSave(Dataface_Record $record){ | |
if ( $record->valueChanged('status') and $record->val('status') === 'Broken' ){ | |
mail(...); | |
} | |
} | |
} |