settings.php 4.32 KB
<?php
namespace Tz\WordPress\Tools\Notifications\Settings;
?>

<div id="" class="wrap">

    <h2>Notifications - Settings</h2>
    <p>In order to comply with the CAN-SPAM act, each outgoing email must include the following:</p>
    
    
    <form method="post" action="options.php">
        <?php settings_fields(SETTING_NS); ?>

        <table cellspacing="0" class="widefat post fixed" style="margin-top:15px;">
            <thead>
                <tr>
                    <th width="150">CAN-SPAM Settings</th>
                    <th>&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="150">Company Name:</td>
                    <?php $wp_option = SETTING_NS . '[company]'; ?>
                    <td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['company'];?>" /></td>
                </tr>
                <tr>
                    <td width="150">Address:</td>
                    <?php $wp_option = SETTING_NS . '[address]'; ?>
                    <td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['address'];?>" /></td>
                </tr>
                <tr>
                    <td width="150">City:</td>
                    <?php $wp_option = SETTING_NS . '[city]'; ?>
                    <td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['city'];?>" /></td>
                </tr>
                <tr>
                    <td width="150">Province:</td>
                    <td>
                        <?php $wp_option = SETTING_NS . '[province]'; ?>
                        <select name="<?php echo $wp_option; ?>" class="wide-input-field" >
                            <option value="Ontario">Ontario</option>
                            <option value="Quebec">Quebec</option>
                            <option value="Nova Scotia">Nova Scotia</option>
                            <option value="New Brunswick">New Brunswick</option>
                            <option value="Manitoba">Manitoba</option>
                            <option value="British Columbia">British Columbia</option>
                            <option value="Prince Edward Island">Prince Edward Island</option>
                            <option value="Saskatchewan">Saskatchewan</option>
                            <option value="Alberta">Alberta</option>
                            <option value="Newfoundland and Labrador">Newfoundland and Labrador</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="150">Postal Code:</td>
                    <?php $wp_option = SETTING_NS . '[postal]'; ?>
                    <td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['postal'];?>" /></td>
                </tr>
            </tbody>
        </table>
        
        <table cellspacing="0" class="widefat post fixed" style="margin-top:15px;">
            <thead>
                <tr>
                    <th width="150">CAN-SPAM Messages</th>
                    <th>&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="150">Standard Message:</td><!--  -->
                    <?php $wp_option = SETTING_NS . '[std_message]'; ?>
                    <td><textarea id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" class="wide-input-field" rows="4" style="width:100%;color:#999" onkeydown="this.style.color = '#000000';"><?php echo Vars::$settings['std_message'];?></textarea></td>
                </tr>
                <tr>
                    <td width="150">OPT-OUT Message:</td><!--  -->
                    <?php $wp_option = SETTING_NS . '[opt_message]'; ?>
                    <td><textarea id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" class="wide-input-field" rows="4" style="width:100%;color:#999" onkeydown="this.style.color = '#000000';" ><?php echo Vars::$settings['opt_message'];?></textarea></td>
                </tr>
            </tbody>
        </table>
        
        <p>
        <input type="submit" value="  Update  " />
        </p>
    </form>

</div>