settings.php 4.41 KB
<?php
use Tz\WordPress\Tools\Notifications\Settings;
use Tz\WordPress\Tools\Notifications;
use Tz\WordPress\Tools;

?>

<link type="text/css" href="<?php echo Tools\url('assets/css/smoothness/jquery-ui-1.8.4.custom.css', __FILE__)?>" rel="stylesheet" />	
<script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-1.4.2.min.js', __FILE__)?>"></script>
<script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-ui-1.8.4.custom.min.js', __FILE__)?>"></script>
<script type="text/javascript" src="<?php echo Tools\url('assets/scripts/datetimepicker.js', __FILE__)?>"></script>
<link rel="stylesheet" href="<?php echo Tools\url('assets/css/notifications.css', __FILE__)?>" />

<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 enctype="multipart/form-data" method="post" action="options.php">
        
        <input type="hidden" name="_POSTED_" value="yes" />
        
        <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>
                    <td><input type="text" name="company" class="wide-input-field" /></td>
                </tr>
                <tr>
                    <td width="150">Address:</td>
                    <td><input type="text" name="address" class="wide-input-field" /></td>
                </tr>
                <tr>
                    <td width="150">City:</td>
                    <td><input type="text" name="city" class="wide-input-field" /></td>
                </tr>
                <tr>
                    <td width="150">Province:</td>
                    <td>
                        <select name="province" 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>
                    <td><input type="text" name="postal" /></td>
                </tr>
            </body>
        </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>
                    <td><textarea name="std_message" class="wide-input-field" rows="4" style="width:100%;color:#999" onkeydown="this.style.color = '#000000';">This email was sent to ({email}) because you have agreed to receive periodic emails from us.  To ensure that you continue receiving our emails, please add us to your address book or safe list.</textarea></td>
                </tr>
                <tr>
                    <td width="150">OPT-OUT Message::</td>
                    <td><textarea name="opt_message" class="wide-input-field" rows="4" style="width:100%;color:#999" onkeydown="this.style.color = '#000000';" >If you do not wish to further receive emails from us, you can change your notification settings in your profile.</textarea></td>
                </tr>
            </body>
        </table>
        
        <p>
        <input type="submit" value="  Update  " />
        </p>
    </form>

</div>