コード例 #1
0
/**
 * Main Output function for the admin area
 **/
function group_pay_output($vars)
{
    //Check for paypal
    if (!gp_CheckForPaypal()) {
        echo "<p><strong>No Paypal Account</strong></p>\n\t\t\t<p>Group Pay has been configured to use a paypal account.</p>\n\t\t\t<p>Please add a paypal gateway.</p>";
    } else {
        //Do we have to save the settings
        $message = "";
        //$validLic = gp_ValidLicense();
        //Load Current Settins
        $settings = gp_LoadSettings();
        $paypalEmail = gp_LoadPayPayEmail();
        // Run a legacy file check
        group_pay_legacy_file_check();
        echo $message != "" ? "<p><b>{$message}</b></p>" : "";
        echo '<table><tr><td>Enabled:</td><td>' . ($settings['Enabled'] == "on" ? '<span style="color: green; font-weight: bold;">Enabled</span>' : '<span style="color: red; font-weight: bold;">Disabled</span>') . '</td></tr>';
        //	echo '<tr><td>License Key:</td><td>'.$settings['LicenseKey'].'</td></tr>';
        //	if($validLic[0]){
        echo '<tr><td>System Name:</td><td>' . $settings['SystemName'] . '</td></tr>';
        echo "<tr><td>PayPal Account:</td><td>{$paypalEmail}&nbsp;(<i>Loaded from PayPal gateway.</i>)</td></tr>";
        echo '<tr><td>Min Deposit:</td><td>$ ' . formatcurrency($settings['MinPayment']) . '</td></tr>';
        echo '<tr><td>Page Icon:</td><td>' . ($settings['PageIcon'] == "" ? "<i>None Configured</i>" : $settings['PageIcon']) . '</td></tr>';
        //	}else {
        //		echo '<tr valign="top"><td style="color:red">License Error:</td><td>'.$validLic[1].'</tr>';
        //	}
        echo '<tr valign="top"><td>Current Version:</td><td>' . $settings['version'] . '</tr>';
        echo '<tr><td>&nbsp;</td><td>&nbsp;</tr>';
        echo '<tr><td>Settings may be altered in Setup->Addon Modules->Group Pay</td><td>&nbsp;</tr>';
        echo '<tr><td>&nbsp;</td><td>&nbsp;</tr></table>';
        echo "<h3>We would like your support!</h3><p>If you like <a target='_blank' href='http://www.whmcs.com/appstore/304/Group-Pay---Its-Clan-Pay-for-your-WHMCS.html'>GroupPay</a> please <b>let people know!</b>" . "<ul>" . "<li><a target='_blank' href='http://www.whmcs.com/appstore/304/Group-Pay---Its-Clan-Pay-for-your-WHMCS.html'>See GroupPay on WHMCS App Store</a></li>" . "<li><a target='_blank' href='http://www.facebook.com/sharer.php?u=http://kadeo.com.au/'>Share Kadeo's Home Page on Facebook</a></li>" . "<li><a target='_blank' href='http://www.facebook.com/sharer.php?u=http://kadeo.com.au/design-and-development/whmcs-dev/whmcs-modules/72-group-pay.html'>Share Kadeo's Group Pay Page on Facebook</a></li>" . "<li><a target='_blank' href='http://twitter.com/share?url=http://kadeo.com.au/&text=I%27m+using+Group+Pay+for+WHMCS+by+%40craftingtheweb'>Tweet About Group Pay</a></li>" . "</ul>" . "Thanks Heaps!</p>";
    }
}
コード例 #2
0
    ?>
</td>
                    <td><?php 
    echo $value->uraian;
    ?>
</td>
                    <td><?php 
    echo $value->satuan;
    ?>
</td>
                    <td align="center"><?php 
    echo $value->volume;
    ?>
</td>
                    <td align="right"><?php 
    echo formatcurrency($value->nominal);
    ?>
</td>
                    <td align="center"><?php 
    echo datefmysql($value->tanggal_kegiatan);
    ?>
</td>
                </tr>
                <?php 
}
?>
            </tbody>
        </table>

        <br/>
        <table align="right" width="100%">
コード例 #3
0
ファイル: buku-kas-umum.php プロジェクト: arvinnizar/anggaran
    ?>
</td>
            <td><?php 
    echo $value->uraian;
    ?>
</td>
            <td align="right"><?php 
    echo $value->keluar === 'Tidak' ? formatcurrency($value->nominal) : '';
    ?>
</td>
            <td align="right"><?php 
    echo $value->keluar === 'Ya' ? formatcurrency($value->nominal) : '';
    ?>
</td>
            <td align="right"><?php 
    echo formatcurrency($total);
    ?>
</td>
        </tr>
        <?php 
}
?>
    </tbody>
</table>

<br/>
<table align="right" width="100%">
    <!--<tr><td width="100%"  colspan="3" align="right"><?php 
echo $attr->kabupaten;
?>
, <?php 
コード例 #4
0
ファイル: rekap-pajak.php プロジェクト: arvinnizar/anggaran
    ?>
</td>
            <td align="right"><?php 
    echo $pph22 !== '' ? formatcurrency($pph22) : '';
    ?>
</td>
            <td align="right"><?php 
    echo $pph23 !== '' ? formatcurrency($pph23) : '';
    ?>
</td>
            <td align="right"><?php 
    echo $pengeluaran !== '' ? formatcurrency($pengeluaran) : '';
    ?>
</td>
            <td align="right"><?php 
    echo formatcurrency($saldo);
    ?>
</td>
        </tr>
        <?php 
}
?>
    </tbody>
</table>

<br/>
<table align="right" width="100%">
    <tr><td colspan="4" align="center">Mengetahui<br/>Kepala Madrasah</td><td colspan="2">&nbsp;</td><td colspan="4" width="33%" align="center">Dibuat Oleh,<br/>Bendahara</td> </tr>
    <tr><td colspan="10">&nbsp;</td></tr>
    <tr><td colspan="10">&nbsp;</td></tr>
    <tr><td colspan="10">&nbsp;</td></tr>