<?php /* Smarty version 3.1.27, created on 2026-03-21 10:02:50
         compiled from "my:user_withdraw_request" */ ?>
<?php
/*%%SmartyHeaderCode:84061761469be6ccaf04a43_90618113%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9fd553e03823dde418d4902a87d19523ad4e4366' => 
    array (
      0 => 'my:user_withdraw_request',
      1 => 1774087370,
      2 => 'my',
    ),
  ),
  'nocache_hash' => '84061761469be6ccaf04a43_90618113',
  'variables' => 
  array (
    'user' => 0,
    'frm' => 0,
    'errors' => 0,
    'have_hold' => 0,
    'value' => 0,
    'color_neg' => 0,
    'color_pos' => 0,
    'color_net' => 0,
    'add_fiat' => 0,
    'ec' => 0,
    'ps' => 0,
    'p' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_69be6ccb00f5b0_50794006',
  'tpl_function' => 
  array (
    'value_color' => 
    array (
      'called_functions' => 
      array (
      ),
      'compiled_filepath' => './tmpl_c/9fd553e03823dde418d4902a87d19523ad4e4366_0.my.user_withdraw_request.php',
      'uid' => '9fd553e03823dde418d4902a87d19523ad4e4366',
      'call_name' => 'smarty_template_function_value_color_84061761469be6ccaf04a43_90618113',
    ),
  ),
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_69be6ccb00f5b0_50794006')) {
function content_69be6ccb00f5b0_50794006 ($_smarty_tpl) {
if (!is_callable('smarty_function_cycle')) require_once '/home/crystala/veltrixholdingsltd.com/inc/libs/smarty3/plugins/function.cycle.php';

$_smarty_tpl->properties['nocache_hash'] = '84061761469be6ccaf04a43_90618113';
?>
 <?php echo $_smarty_tpl->getSubTemplate ("my:admin_header", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 <h3>Withdraw Request for &#39;<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['username'], ENT_QUOTES, 'UTF-8', true);?>
&#39; <a href="?a=user_details&id=<?php echo $_smarty_tpl->tpl_vars['user']->value['id'];?>
" class="sbmt btn-sm btn-primary">details</a></h3> <?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == "done") {?> <div class="alert alert-success">Withdrawl Request has been added<br></div> <?php }?> <?php if ($_smarty_tpl->tpl_vars['errors']->value['no_ec']) {?> <div class="alert alert-danger">Payment processing was not selected</div> <?php } elseif ($_smarty_tpl->tpl_vars['errors']->value['no_amount']) {?> <div class="alert alert-danger">Withdraw amount is reqired</div> <?php } elseif ($_smarty_tpl->tpl_vars['errors']->value['not_enought']) {?> <div class="alert alert-danger">Insufficient user funds to withdraw</div> <?php } elseif ($_smarty_tpl->tpl_vars['errors']->value['on_hold']) {?> <div class="alert alert-danger">Insufficient user funds to withdraw</div> <?php }?> <table class="form"> <tr> <th>User:</th> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['username'], ENT_QUOTES, 'UTF-8', true);?>
</td> </tr> </table> <form method=post onsubmit="return confirm('Are you sure to make the withdarawal request?');"> <input type=hidden name=a value="user_withdraw_request"> <input type=hidden name=action value="withdraw"> <input type=hidden name=userid value="<?php echo $_smarty_tpl->tpl_vars['user']->value['id'];?>
"> <input type=hidden name=say value=""> <table class="list"> <tr> <th></th> <th>Processing</th> <th>Available</th> <?php if ($_smarty_tpl->tpl_vars['have_hold']->value) {?> <th>On Hold</th> <?php }?> <th>Pending</th> <th>Account</th> </tr>  <?php
$_from = $_smarty_tpl->tpl_vars['ps']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['p']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
$foreach_p_Sav = $_smarty_tpl->tpl_vars['p'];
?> <tr class="<?php echo smarty_function_cycle(array('values'=>"row1,row2"),$_smarty_tpl);?>
"> <td><?php if ($_smarty_tpl->tpl_vars['p']->value['available'] > 0) {?><input type="radio" name="ec" value="<?php echo $_smarty_tpl->tpl_vars['p']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['ec'] == $_smarty_tpl->tpl_vars['p']->value['id']) {?>checked<?php }?>><?php }?></td> <td><img src="images/<?php echo $_smarty_tpl->tpl_vars['p']->value['id'];?>
.gif" width=44 height=17 align=absmiddle> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</td> <td><?php $_smarty_tpl->callTemplateFunction ("value_color", $_smarty_tpl, array('value'=>$_smarty_tpl->tpl_vars['p']->value['available'],'ec'=>$_smarty_tpl->tpl_vars['p']->value['ec'],'add_fiat'=>1), true);?>
</b></td> <?php if ($_smarty_tpl->tpl_vars['have_hold']->value) {?> <td><?php $_smarty_tpl->callTemplateFunction ("value_color", $_smarty_tpl, array('color_pos'=>"black",'value'=>$_smarty_tpl->tpl_vars['p']->value['hold'],'ec'=>$_smarty_tpl->tpl_vars['p']->value['ec'],'add_fiat'=>1), true);?>
</td> <?php }?> <td><b style="color:red"><?php $_smarty_tpl->callTemplateFunction ("value_color", $_smarty_tpl, array('color_pos'=>"red",'value'=>$_smarty_tpl->tpl_vars['p']->value['pend'],'ec'=>$_smarty_tpl->tpl_vars['p']->value['ec'],'add_fiat'=>1), true);?>
</b></td> <td><?php if ($_smarty_tpl->tpl_vars['p']->value['account'] != '') {
echo htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['account'], ENT_QUOTES, 'UTF-8', true);
} else { ?><a href="<?php echo encurl("?a=user_edit&id=".((string)$_smarty_tpl->tpl_vars['user']->value['id']));?>
"><i>not set</i></a><?php }?></td> </tr> <?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?> </table> <table class="form"> <tr> <th>Withdrawal Amount:</th> <td><input type=text name=amount value="<?php echo (($tmp = @amount_smarty_format($_smarty_tpl->tpl_vars['frm']->value['amount']))===null||$tmp==='' ? "10.00" : $tmp);?>
" class=inpts></td> </tr> <tr> <th>Comment:</th> <td><textarea name=comment class=inpts cols=45 rows=4><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['comment'], ENT_QUOTES, 'UTF-8', true);?>
</textarea></td> </tr> <tr> <th>&nbsp;</th> <td><input type=submit value="Request" class=sbmt></td> </tr> </table> </form> <?php echo $_smarty_tpl->getSubTemplate ("my:admin_footer", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 <?php }
}
?><?php
/* smarty_template_function_value_color_84061761469be6ccaf04a43_90618113 */
if (!function_exists('smarty_template_function_value_color_84061761469be6ccaf04a43_90618113')) {
function smarty_template_function_value_color_84061761469be6ccaf04a43_90618113($_smarty_tpl,$params) {
$saved_tpl_vars = $_smarty_tpl->tpl_vars;
$params = array_merge(array('add_fiat'=>true,'color_neg'=>"red",'color_pos'=>"green",'color_net'=>"gray"), $params);
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value);
}?> <b style="color:<?php if ($_smarty_tpl->tpl_vars['value']->value < 0) {
echo $_smarty_tpl->tpl_vars['color_neg']->value;
} elseif ($_smarty_tpl->tpl_vars['value']->value > 0) {
echo $_smarty_tpl->tpl_vars['color_pos']->value;
} else {
echo $_smarty_tpl->tpl_vars['color_net']->value;
}?>"><?php if ($_smarty_tpl->tpl_vars['add_fiat']->value) {
echo amount_smarty_fiat($_smarty_tpl->tpl_vars['value']->value,$_smarty_tpl->tpl_vars['ec']->value);
} else {
echo $_smarty_tpl->tpl_vars['value']->value;
}?></b> <?php foreach (Smarty::$global_tpl_vars as $key => $value){
if ($_smarty_tpl->tpl_vars[$key] === $value) $saved_tpl_vars[$key] = $value;
}
$_smarty_tpl->tpl_vars = $saved_tpl_vars;
}
}
/*/ smarty_template_function_value_color_84061761469be6ccaf04a43_90618113 */

?>
