コード例 #1
0
ファイル: open_orders.php プロジェクト: njassim/SOHO_REPRO
                     <td width="15" align="center" valign="middle" bgcolor="#f68210"  class="brdr pad_rght">Action</td>
                 </tr>
 <?php
   $view_orders = viewOrders($id);
    $j=1;
    foreach ($view_orders as $ord) {
     $rowColor = ($j % 2 != 0) ? '#dfdfdf' : '#eeeeee';
     $rowColor1 = ($j % 2 != 0) ? '#eeeeee' : '#f6f2f2';
     $prod_id = $ord['product_id'];
     $id = $ord['id'];
     $ord_id_t = $ord['order_id'];                 
   ?>
                 <tr class="inline" id="<?php echo $id; ?>" >
                     <span class="jass" id="<?php echo $id; ?>" style="display: none;"></span>
                     <span class="order_id_t_<?php echo $id; ?>" id="<?php echo $ord_id_t; ?>" style="display: none;"></span>
                     <input type="text" id="h_<?php echo $id; ?>" style="display: none;" value="<?php echo getpid($prod_id,$ord_id); ?>" />                                
                     <td width="285" align="left" valign="middle" bgcolor="<?php echo $rowColor1; ?>" class="brdr pad_lft"><span class="product_<?php echo $id; ?>"><?php echo $ord['product_name']; ?></span><input type="text" class="inline-text-prod product_txt_<?php echo $id; ?>" id="product_txt_<?php echo $id; ?>" value="<?php echo str_replace('"',"'",$ord['product_name']); ?>" style="display: none;"/></td>
                     <td width="50" align="center" valign="middle" bgcolor="<?php echo $rowColor; ?>"  class="brdr"><span class="quantity_<?php echo $id; ?>"><?php echo $ord['product_quantity']; ?></span><input type="text" class="inline-text quantity_txt_<?php echo $id; ?>" id="quantity_txt_<?php echo $id; ?>" value="<?php echo $ord['product_quantity']; ?>" style="display: none;"/></td>
                     <td width="75" align="center" valign="middle" bgcolor="<?php echo $rowColor1; ?>"  class="brdr pad_rght"><span class="price_<?php echo $id; ?>"><?php echo '$' . $ord['product_price']; ?></span><input type="text" class="inline-text price_txt_<?php echo $id; ?>" id="price_txt_<?php echo $id; ?>" value="<?php echo $ord['product_price']; ?>" style="display: none;"/></td>                                
                     <td width="85" align="left" valign="middle" bgcolor="<?php echo $rowColor; ?>" class="brdr pad_rght"><span class="line_cost_<?php echo $id; ?>"><?php echo '$' . number_format(($ord['product_quantity'] * $ord['product_price']), 2, '.', ''); ?></span></td>                                                                                                
                     <td width="15" align="center" valign="middle" bgcolor="<?php echo $rowColor1; ?>"  class="brdr pad_rght"><img src="images/like_icon.png"  alt="Update" title="Update" width="22" height="22" class="mar_lft updater update_<?php echo $id; ?>" style="display: none; margin-left: 0px;"/><a href="open_orders.php?delete_id=<?php echo $id; ?>&ord_id=<?php echo $ref_serial; ?>" onclick="return confirm('Are you delete this product of this order?');"><img src="images/del.png" class="delete_<?php echo $id; ?>"  alt="Delete Product" title="Delete Product" width="22" height="22" class="mar_lft"/></a></td>
                 </tr> 
                         
                         
    <?php 
    $j++;
    } 
    
    ?> 
                 <!-- Add Product  Button Start -->
                 <tr> 
コード例 #2
0
ファイル: index (copy).php プロジェクト: njassim/SOHO_REPRO
                                <span class="jass" id="<?php 
            echo $id;
            ?>
" style="display: none;"></span>
                                <span class="order_id_t_<?php 
            echo $id;
            ?>
" id="<?php 
            echo $ord_id_t;
            ?>
" style="display: none;"></span>
                                <input type="text" id="h_<?php 
            echo $id;
            ?>
" style="display: none;" value="<?php 
            echo getpid($prod_id, $ord_id);
            ?>
" />                                
                                <td width="285" align="left" valign="middle" bgcolor="<?php 
            echo $rowColor1;
            ?>
" class="brdr pad_lft"><span class="product_<?php 
            echo $id;
            ?>
"><?php 
            echo $ord['product_name'];
            ?>
</span><input type="text" class="inline-text-prod product_txt_<?php 
            echo $id;
            ?>
" id="product_txt_<?php 
コード例 #3
0
ファイル: msnbot.php プロジェクト: TiMoChao/xingfu
function removeContact($from, $network = 1)
{
    global $aNotifyUser;
    if (is_array($aNotifyUser) && count($aNotifyUser) > 0) {
        $nw_name = getNetworkName($network);
        $now = strftime('%D %T');
        $fname = dirname($_SERVER['argv'][0]) . DIRECTORY_SEPARATOR . 'spool' . DIRECTORY_SEPARATOR . 'msn_' . getpid() . '_' . md5('delete' . rand(1, 1000) . $now) . '.msn';
        $fp = fopen($fname, 'wt');
        if ($fp) {
            $list = '';
            foreach ($aNotifyUser as $user) {
                if ($list === '') {
                    $list = $user;
                } else {
                    $list .= ',' . $user;
                }
            }
            fputs($fp, "TO: {$list}\n");
            fputs($fp, "Now: {$now}\n{$from} (network: {$nw_name}) remove me from his contact list!");
            fclose($fp);
            chmod($fname, 0666);
        }
    }
    return;
}