Esempio n. 1
0
        echo Core::$word->VAT;
        ?>
</th>
        <th class="disabled"><?php 
        echo Core::$word->ACTIONS;
        ?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$countries) {
            ?>
      <tr>
        <td colspan="7"><?php 
            echo Filter::msgSingleAlert(Core::$word->CNT_NOCOUNTRY);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($countries as $row) {
                ?>
      <tr>
        <td><?php 
                echo $row->name;
                ?>
</td>
        <td><small class="wojo label"><?php 
Esempio n. 2
0
echo Core::$word->TX_PP;
?>
</th>
        <th class="disabled"><?php 
echo Core::$word->ACTIONS;
?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
if (!$transrow) {
    ?>
      <tr>
        <td colspan="7"><?php 
    echo Filter::msgSingleAlert(Core::$word->TX_NOTRANS);
    ?>
</td>
      </tr>
      <?php 
} else {
    ?>
      <?php 
    foreach ($transrow as $row) {
        ?>
      <tr>
        <td><small class="wojo label"><?php 
        echo $row->id;
        ?>
.</small></td>
        <td><?php 
Esempio n. 3
0
<div class="wojo basic segment">
  <table class="wojo basic table">
    <thead>
      <tr>
        <th>#</th>
        <th>Gateway Name</th>
        <th>Actions</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$gaterow) {
            ?>
      <tr>
        <td colspan="3"><?php 
            echo Filter::msgSingleAlert(Core::$word->GW_NOGWY);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($gaterow as $row) {
                ?>
      <tr>
        <td><small class="wojo label"><?php 
                echo $row->id;
                ?>
.</small></td>
        <td><?php 
Esempio n. 4
0
        echo Core::$word->CREATED;
        ?>
</th>
        <th class="disabled"><?php 
        echo Core::$word->ACTIONS;
        ?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$discrow) {
            ?>
      <tr>
        <td colspan="5"><?php 
            echo Filter::msgSingleAlert(Core::$word->DC_NONDISC);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($discrow as $row) {
                ?>
      <tr>
        <td><small class="wojo label"><?php 
                echo $row->id;
                ?>
.</small></td>
        <td><?php 
Esempio n. 5
0
        echo Core::$word->CREATED;
        ?>
</th>
        <th class="disabled"><?php 
        echo Core::$word->ACTIONS;
        ?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$newsrow) {
            ?>
      <tr>
        <td colspan="4"><?php 
            echo Filter::msgSingleAlert(Core::$word->NM_NONEWS);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($newsrow as $row) {
                ?>
      <tr>
        <td><small class="wojo label"><?php 
                echo $row->id;
                ?>
.</small></td>
        <td><?php 
Esempio n. 6
0
        echo Core::$word->PUBLISHED;
        ?>
</th>
        <th class="disabled"><?php 
        echo Core::$word->ACTIONS;
        ?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$memrow) {
            ?>
      <tr>
        <td colspan="7"><?php 
            echo Filter::msgSingleAlert(Core::$word->MM_NOMEM);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($memrow as $row) {
                ?>
      <tr>
        <td><small class="wojo label"><?php 
                echo $row->id;
                ?>
.</small></td>
        <td><?php 
Esempio n. 7
0
/**
 * Controller
 *
 */
define("_VALID_PHP", true);
require_once "../init.php";
if (!$user->logged_in) {
    exit;
}
/* Proccess Cart */
if (isset($_POST['addtocart'])) {
    $row = Core::getRowById(Membership::mTable, Filter::$id);
    if ($row) {
        $gaterows = Registry::get("Membership")->getGateways(true);
        if ($row->trial && $user->trialUsed()) {
            $json['message'] = Filter::msgSingleAlert(Core::$word->UA_TRIAL_USED, false);
            print json_encode($json);
            exit;
        }
        if ($row->price == 0) {
            $data = array('membership_id' => $row->id, 'mem_expire' => $user->calculateDays($row->id), 'trial_used' => $row->trial == 1 ? 1 : 0);
            $db->update(Users::uTable, $data, "id=" . $user->uid);
            $json['message'] = Filter::msgSingleOk(Core::$word->UA_MEM_ACTIVE_OK . ' ' . $row->title, false);
            print json_encode($json);
        } else {
            $recurring = $row->recurring == 1 ? Core::$word->YES : Core::$word->NO;
            $db->delete(Content::crTable, "uid = " . $user->uid);
            $tax = Core::calculateTax();
            $data = array('uid' => $user->uid, 'mid' => $row->id, 'cid' => 0, 'coupon' => 0.0, 'originalprice' => $row->price, 'tax' => $tax, 'totaltax' => $row->price * $tax, 'total' => $row->price, 'totalprice' => $tax * $row->price + $row->price, 'created' => "NOW()");
            $db->insert(Content::crTable, $data);
            $cart = Core::getCart();
Esempio n. 8
0
        echo Core::$word->EXPIRE;
        ?>
</th>
        <th class="disabled"><?php 
        echo Core::$word->ACTIONS;
        ?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$userrow) {
            ?>
      <tr>
        <td colspan="7"><?php 
            echo Filter::msgSingleAlert(Core::$word->UR_NOUSER);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($userrow as $row) {
                ?>
      <tr>
        <td><small class="wojo label"><?php 
                echo $row->id;
                ?>
.</small></td>
        <td><a href="index.php?do=newsletter&amp;emailid=<?php 
Esempio n. 9
0
        echo Core::$word->CF_SECTION;
        ?>
</th>
        <th class="disabled"><?php 
        echo Core::$word->ACTIONS;
        ?>
</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        if (!$fields) {
            ?>
      <tr>
        <td colspan="5"><?php 
            echo Filter::msgSingleAlert(Core::$word->CF_NOFIELDS);
            ?>
</td>
      </tr>
      <?php 
        } else {
            ?>
      <?php 
            foreach ($fields as $row) {
                ?>
      <tr id="node-<?php 
                echo $row->id;
                ?>
">
        <td class="id-handle"><i class="icon reorder"></i></td>
        <td><?php 
Esempio n. 10
0
<div id="wrap">
  <div class="wojo-grid">
    <div class="columns">
      <div class="screen-60 tablet-90 phone-100 push-center">
        <div class="wojo form">
          <?php 
if (!$core->reg_allowed) {
    ?>
          <?php 
    echo Filter::msgSingleAlert(Core::$word->UA_NOMORE_REG);
    ?>
          <?php 
} elseif ($core->user_limit != 0 and $core->user_limit == countEntries(Users::uTable)) {
    ?>
          <?php 
    echo Filter::msgSingleAlert(Core::$word->UA_MAX_LIMIT);
    ?>
          <?php 
} else {
    ?>
          <h4><?php 
    echo Core::$word->UA_INFO4;
    ?>
</h4>
          <form id="wojo_form" name="wojo_form" method="post">
            <div class="field">
              <input name="username" placeholder="<?php 
    echo Core::$word->USERNAME;
    ?>
" type="text">
            </div>