Download the PHP package kassovicms/onyx without Composer
On this page you can find all versions of the php package kassovicms/onyx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package onyx
Onyx
Onyx triedy (model a visual)
Model
$sql = "SELECT * FROM table";
$xdata = new sqldata();
$xdata->sql_query = $sql;
$datatable = $xdata->get_sql_data();
$rowdata = $xdata->get_sql_row_data();
$figure = $xdata->get_sql_onefigure_data("sql_field_name");
Render
$variables = array(
'pagetitle' => "Page title",
'hdnavi_html' => "top_nav.php",
'no_login' => FALSE,
'sql' => $sql,
'form_action' => $_SERVER["PHP_SELF"]);
renderLayout2 ("/commons/insert_success_view.php", APP_TEMPLATE_FILE, APP_LAYOUT_FILE, $variables);
View - Form dropdown
View - Form field
HTML Form example
<form action=""
class="pure-form pure-form-aligned"
enctype="multipart/form-data"
id="formular"
method="post">
<fieldset>
<legend>Miesto</legend>
</fieldset>
<fieldset>
<legend>Produkty a ceny</legend>
</fieldset>
<br>
<button class="pure-button pure-button-primary"
type="submit"
name="submit"
id="submitID">
Zaznamenať
</button>
<p hidden id="oznam">Pracujeme na tom...</p>
</form>
<script>
//Script to prevent double form submission
var form = document.getElementById('formular');
var submitButton = document.getElementById('submitID');
var oznamtext = document.getElementById('oznam');
form.addEventListener('submit', function()
{
submitButton.setAttribute('hidden', 'hidden');
submitButton.innerHTML = 'Pracujeme na tom...';
oznamtext.removeAttribute('hidden');
}, false);
</script>
New ONYX
Email wrapper
$m = new email_wrap();
$m->body = $mailmessage;
$m->subject = "Pohľadávka č. " . $id;
$m->footer = "template/mail_footer.html";
$m->config_file = TEMPLATE_DIR . "/mail_config.php";
$m->mail_module = "POHLADAVKY_POZNAMKA";
$m->autor = $autor_email;
$m->send_mail();
PDO
$servername = DB_HOST;
$database = DB_NAME;
$conn_pdo = new PDO("mysql:host=$servername;port=3306;charset=UTF8;dbname=$database", DB_USER, DB_PASSWORD);
$conn_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn_pdo->prepare("SELECT email AS email, to_cc_bcc AS to_cc_bcc, trn As trn FROM email_dist WHERE trn = :trn");
$mod = "LA_NOVA";
$stmt->bindParam(':trn', $mod);
$stmt->execute();
$row_count = $stmt->rowCount();
$table = $stmt->fetchAll(\PDO::FETCH_ASSOC);
$row = $table[0];
$figure = $table[0]['email'];
$conn_pdo = null;
All versions of onyx with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package kassovicms/onyx contains the following files
Loading the files please wait ....