示例#1
0
 function render_title($source)
 {
     if (!($title = $source->getName())) {
         return false;
     }
     return $this->_renderer->p($this->_renderer->link($source->getURL(), converttext($title)), array('class' => $this->_css_class_title));
 }
示例#2
0
 function _HTML_blurb($blurb)
 {
     if (!$blurb) {
         return false;
     }
     return $this->_HTML_in_P(converttext($blurb), array('class' => $this->_css_class_text));
 }
示例#3
0
 function _HTML_contact($contact)
 {
     if (!$contact) {
         return false;
     }
     return '<table border="0" cellpadding="0" cellspacing="0"><tr>' . $this->_HTML_inTD($this->_HTML_inSpan('Contact:&nbsp;', $this->_css_class_label), array('valign' => 'top')) . $this->_HTML_inTD('&nbsp;', array('valign' => 'top')) . $this->_HTML_inTD($this->_HTML_inSpan(converttext($contact), $this->_css_class_subheading) . $this->_HTML_newline(), array('valign' => 'top')) . $this->_HTML_endTable();
 }
示例#4
0
 function _HTML_subTitle($subtitle)
 {
     if (!$subtitle) {
         return false;
     }
     return $this->_HTML_inSpan(converttext($subtitle), $this->_css_class_subtitle) . $this->_HTML_newline(2);
 }
示例#5
0
 function setPayable($payable = null)
 {
     if (!isset($payable) || !$payable) {
         return false;
     }
     $this->payment->fields['Payable_To']['enabled'] = true;
     $this->payment->fields['Payable_To']['default'] = converttext($payable);
 }
示例#6
0
 function render_title()
 {
     $renderer = AMP_get_renderer();
     if ($this->use_title_links) {
         return $renderer->in_P($renderer->link($this->_article->getURL(), converttext($this->_article->getName())), array('class' => $this->_css_class_title));
     }
     return $this->_HTML_title($this->_article->getTitle());
 }
示例#7
0
 function render_comments($source)
 {
     if (!($item = $source->getComments())) {
         return false;
     }
     $comments_header = $this->_renderer->td($this->_renderer->strong(ucwords(AMP_TEXT_OTHER_COMMENTS)), array('class' => 'board', 'colspan' => 5));
     $comments_data = $this->_renderer->td(converttext($item), array('class' => 'board', 'colspan' => 5));
     return $this->_renderer->tr($comments_header, array('class' => 'board')) . $this->_renderer->tr($comments_data);
 }
示例#8
0
 function render_body($source)
 {
     if (!($body = $source->getBody())) {
         return false;
     }
     $body = $source->isHtml() ? $body : converttext($body);
     //hot words
     if ($hw = AMP_lookup('hotwords')) {
         $body = str_replace(array_keys($hw), array_values($hw), $body);
     }
     return $this->_renderer->p(eval_includes($body), array('class' => $this->_css_class_body));
 }
示例#9
0
 function render_author($source)
 {
     $author = $source->getAuthor();
     $author_url = $source->getAuthorURL();
     if (!AMP_validate_url($author_url)) {
         $author_url = false;
     }
     if (!trim($author)) {
         $author = 'a stranger';
     }
     return $this->_renderer->link($author_url, converttext($author), array('class' => AMP_CONTENT_CSS_CLASS_ARTICLE_AUTHOR));
 }
示例#10
0
function list_header_intro($list_name = NULL, $description = NULL, $date = NULL)
{
    echo "<p class=title>" . $list_name . "</p>";
    if ($_GET["nointro"] == NULL) {
        if ($description != NULL && $description) {
            echo "<p class=text>" . converttext($description) . '</p>';
        }
        if ($date != "00-00-0000" && isset($date)) {
            echo "<p class=text>" . DoDate($date, 'F j, Y') . "<br>" . '</p>';
        }
    }
}
示例#11
0
 function renderItem(&$source)
 {
     $base_description = $this->_renderer->inSpan($source->getName(), array('class' => $this->_css_class_title)) . $this->_renderer->newline() . $this->_renderer->inSpan(DoDate($source->getItemDate(), 'l, F jS Y') . ($source->getItemDate() ? $this->_renderer->space(2) : '') . $source->getData('time') . $this->_renderer->newline() . $source->getShortLocation(), array('class' => $this->_css_class_details));
     $blurb = ($description = $source->getBody()) ? $description : $source->getBlurb();
     if ($blurb) {
         $blurb = $this->_renderer->inSpan(converttext($blurb), array('class' => $this->_css_class_blurb));
     }
     $location = array();
     $location_segments = array('location', 'laddress', 'lcity', 'lzip');
     foreach ($location_segments as $location_data) {
         $location_value = $source->getData($location_data);
         if (!$location_value) {
             continue;
         }
         $location[$location_data] = $location_value;
     }
     $location['lcity'] = $source->getShortLocation();
     $location_description = isset($location['location']) ? join($this->_renderer->newline(), $location) : "";
     if ($location_description) {
         $location_description = $this->_renderer->bold(AMP_TEXT_LOCATION . ':') . $this->_renderer->newline() . $location_description;
     }
     $contact_output = '';
     $contact_name = $source->getData('contact1');
     $contact_email = $source->getData('email1');
     $contact_phone = $source->getData('phone1');
     if ($contact_name) {
         $contact_output .= $this->_renderer->newline() . $contact_name;
     }
     if ($contact_email) {
         $rendered_contact_email = AMP_protect_email($contact_email);
         $contact_output .= $this->_renderer->newline() . $rendered_contact_email;
     }
     if ($contact_phone) {
         $contact_output .= $this->_renderer->newline() . $contact_phone;
     }
     if ($contact_output) {
         $contact_output = $this->_renderer->bold(AMP_TEXT_CONTACT . ':') . $this->_renderer->newline() . $contact_output;
     }
     $sponsor_output = '';
     if ($sponsor = $source->getData('org')) {
         $sponsor_output = $this->_renderer->bold(AMP_TEXT_SPONSORED . ':') . $this->_renderer->newline() . $sponsor;
     }
     $output_segments = array('base_description', 'blurb', 'location_description', 'contact_output', 'sponsor_output');
     foreach ($output_segments as $block_name) {
         if (!${$block_name}) {
             continue;
         }
         $output_value[$block_name] = ${$block_name};
     }
     return join($this->_renderer->newline(2), $output_value);
 }
示例#12
0
 function _HTML_title()
 {
     $title_html = "";
     if ($text = $this->nav->getTitle()) {
         $title_html = converttext($text);
     }
     if ($image_name = $this->nav->getTitleImage()) {
         $imgpath = $this->_template->getNavImagePath();
         if (strpos($image_name, $imgpath) === FALSE) {
             $image_name = $imgpath . $image_name;
         }
         $title_html = "<img src=\"" . $image_name . "\">";
     }
     return $this->_templateTitle($title_html);
 }
示例#13
0
function display_comment($id)
{
    global $dbcon;
    $R = $dbcon->CacheExecute("SELECT * FROM comments WHERE publish=1 and articleid = {$id} order by date desc") or die($dbcon->ErrorMsg());
    echo '<br><p><a href="comment.php?cid=' . $id . '">add a comment</a></p>';
    while (!$R->EOF) {
        echo "<hr><p><b>" . $R->Fields("title") . "</b><br>";
        echo '<i>by  ';
        if ($R->Fields("email")) {
            echo '<a href="mailto: ' . $R->Fields("email") . '">';
        }
        echo $R->Fields("author");
        echo '</a>,  ' . DoDateTime($R->Fields("date"), "l, M j, Y g:iA") . '</i></p>';
        echo '<p>' . converttext($R->Fields("comment")) . '</p>';
        $R->MoveNext();
    }
}
示例#14
0
 function _renderItem(&$source)
 {
     $caption = $this->_renderer->p(converttext($source->getCaption()), array('class' => $this->_css_class_photocaption));
     $imageRef =& $source->getImageRef();
     if (!$imageRef) {
         return false;
     }
     $this->_image_count++;
     $image_height = $imageRef->height;
     $this->_height_total += $image_height;
     $this->_height_avg = $this->_height_total / $this->_image_count;
     if ($this->_height_max < $image_height && !($image_height > $this->_height_avg * 2)) {
         $this->_height_max = $image_height;
     }
     $image = $this->_renderer->link(AMP_image_url($imageRef->getName(), AMP_IMAGE_CLASS_ORIGINAL, array('height' => $image_height > 600 ? 600 : 0)), $this->_renderer->image($imageRef->getURL(), array()), array('alt' => AMP_TEXT_FULL_SIZE, 'border' => 0, 'rel' => 'lightbox[' . $this->_source_gallery->getName() . ']', 'title' => $this->render_photo_byline($source), 'target' => '_blank'));
     $image_byline = $this->render_byline($source, $imageRef);
     return $image . $image_byline . $caption;
 }
示例#15
0
 function _HTML_listItemSource($author, $source, $url)
 {
     if (!(trim($author) || $source || $url)) {
         return false;
     }
     $output_author = FALSE;
     $output_source = FALSE;
     if (trim($author)) {
         $output_author = $this->_HTML_inSpan('by&nbsp;' . converttext($author), $this->_css_class_author);
         if (!$source) {
             return $output_author . $this->_HTML_newline();
         }
     }
     if ($source) {
         $output_source = $this->_HTML_inSpan($this->_HTML_link($url, $source), $this->_css_class_source);
     }
     if ($output_author && $output_source) {
         return $output_author . ',&nbsp;' . $output_source . $this->_HTML_newline();
     }
     return $output_source . $this->_HTML_newline();
 }
示例#16
0
 function render_source(&$item)
 {
     $author = $item->getAuthor();
     $source = $item->getSource();
     $url = $item->getSourceURL();
     if (!(trim($author) || $source || $url)) {
         return false;
     }
     if (trim($author)) {
         $output_author = $this->_renderer->span('by&nbsp;' . converttext($author), $this->_css_class_author);
         if (!$source) {
             return $output_author . $this->_renderer->newline();
         }
     }
     if ($source) {
         $output_source = $this->_renderer->span($this->link($url, $source), $this->_css_class_source);
     }
     if ($output_author && $output_source) {
         return $output_author . ',&nbsp;' . $output_source . $this->_renderer->newline();
     }
     return $output_source . $this->_renderer->newline();
 }
示例#17
0
 function groups_detail_display($id, $Organization, $City = NULL, $State = NULL, $Country = NULL, $First_Name = NULL, $Last_Name = NULL, $Email = NULL, $Phone = NULL, $Web_Page = NULL, $About = NULL, $Details = NULL, $image = NULL)
 {
     $html .= '<p class ="title">' . $Organization . '</p>';
     if ($Web_Page && $Web_Page != 'http://') {
         $html .= '<a href="' . $Web_Page . '" target="_blank" class ="bodygrey" >' . $Web_Page . '</a><br>';
     }
     if ($City && $State) {
         $html .= "<span class=\"eventsubtitle\">{$City}, ";
         if ($State == 'Intl') {
             $html .= $Country;
         } else {
             $html .= state_convert($State);
         }
         $html .= "</span><br>\n";
     }
     if ($First_Name & $Last_Name) {
         $html .= "<span class=\"bodygrey\">" . $First_Name . "&nbsp;" . $Last_Name . "</span><br>\n";
     }
     if ($Email) {
         $html .= "<span class=\"bodygrey\"><a href=\"mailto:{$Email}\">{$Email}</a></span><br>\n";
     }
     if ($Phone) {
         $html .= "<span class=\"bodygrey\">" . $Phone . "</span><br><br><br>\n";
     }
     if ($image) {
         $html .= "<img src =\"img/pic/{$image}\" align = left>\n";
     }
     if ($About) {
         $html .= "<span class=\"bodygrey\">" . converttext($About) . "</span><br><br>\n";
     }
     if ($Details) {
         $html .= "<span class=\"text\">" . converttext($Details) . "</span><br>\n";
     }
     $html .= "<br>\n";
     return $html;
 }
示例#18
0
    echo $module->Fields("title");
    ?>
</p>
		   <?php 
    if ($module->Fields("subtitile") != $null) {
        ?>
<p class="subtitle"><?php 
        echo $module->Fields("subtitile");
        ?>
</p><?php 
    }
    ?>
		   <?php 
    if ($module->Fields("test") != $null) {
        ?>
<p class="text"><?php 
        if ($module->Fields("html")) {
            echo $module->Fields("test");
        } else {
            echo converttext($module->Fields("test"));
        }
        ?>
</p><?php 
    }
    ?>
		   <?php 
    $module->Close();
    ?>
</td></tr></table>
<?php 
}
示例#19
0
 function _HTML_commentBody($comment)
 {
     if (!$comment) {
         return false;
     }
     return '<P class="text">' . converttext($comment) . "</P>\n";
 }
示例#20
0
function buildactionform($id, $error = NULL)
{
    global $dbcon;
    $act = $dbcon->Execute("SELECT *  FROM action_text  WHERE id = " . $dbcon->qstr($id) . " and actiontype != 'Congress Merge'");
    if ($act) {
        ?>
 <p class="title"><?php 
        echo $act->Fields("title");
        ?>
</p>
 <p class="text"><?php 
        echo converttext($act->Fields("introtext"));
        ?>
</p>
 <?php 
        echo $error;
        ?>
<script language="Javascript" type="text/javascript">

var fieldstocheck = new Array();
    fieldnames = new Array();

function checkform() {
  for (i=0;i<fieldstocheck.length;i++) {
    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
      alert("Please enter your "+fieldnames[i]);
      eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
      return false;
    }
  }
  return true;
}
function addFieldToCheck(value,name) {
  fieldstocheck[fieldstocheck.length] = value;
  fieldnames[fieldnames.length] = name;
}

</script>	

 
<form method="POST"  name="subscribeform" class="form" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
  <script language="Javascript" type="text/javascript">
  addFieldToCheck("First_Name","First Name");

  
  
  </script> 

        
    <input type="hidden" name="actionid" value="<?php 
        echo $act->Fields("id");
        ?>
">
    <input type="hidden" name="MM_insert" value="true">

  <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr> 
      <td width="50%" valign="top"><h3>Read and Edit the Letter</h3></td>
      <td width="20">&nbsp;</td>
      <td width="50%"><h3>Send the Message</h3></td>
    </tr>
    <tr> 
      <td width="31%" valign="top"><TABLE width=250  cellpadding=0 cellspacing=0>
          <TR> 
            <!-- PREVIEW LETTER -->
            <TD valign="top"> </TD>
          </TR>
        </TABLE>
        <center>
          <TABLE CELLPADDING="2" CELLSPACING="2" bgcolor="#E1E1E1">
            <tr> 
              <td valign="top"> 
                Subject:<BR> <input type="text" name="subjectText" size="42" style="width:225px" value="<?php 
        if ($_POST['subjectText']) {
            echo $_POST['subjectText'];
        } else {
            echo $act->Fields("subject");
        }
        ?>
" > 
                <br></i>
                <br>
                Dear <?php 
        echo $act->Fields("prefix");
        ?>
&nbsp;<?php 
        echo $act->Fields("firstname");
        ?>
&nbsp;<?php 
        echo $act->Fields("lastname");
        ?>
,<br> <br> <textarea name="Letter_Content" rows="22" cols="53" wrap="soft" style="width:250px"><?php 
        if ($_POST['Letter_Content']) {
            echo $_POST['Letter_Content'];
        } else {
            echo $act->Fields("text");
        }
        ?>
</textarea> 
                <br>
                Sincerely,<br> <br> <i>Your signature will be added from the information 
                you provide below.</i></td>
            </tr>
          </TABLE>
        </center></td>
      <td width="19%" valign="top">&nbsp;</td>
      <td width="50%" valign="top"> <center>
          <table border="0" cellpadding="0" cellspacing="2">
            <tr> 
              <td colspan="2" valign="top" class="form"><TABLE cellpadding=0 cellspacing=0>
                <tr> 
                  <td>
                  <div align="left"> 
                  First, enter the code from the image below 
                        <span class='red'><font color = 'red'><?php 
        print $GLOBALS['captcha_message'];
        ?>
</font></span><BR />
                        <img src='<?php 
        print AMP_url_add_vars(AMP_CONTENT_URL_CAPTCHA, array('key=' . AMP_SYSTEM_UNIQUE_VISITOR_ID));
        ?>
'/>
                  </div></td>
                </tr>
                <tr> 
                  <td>
                  <div align="left"> 
                  <p>
                      <input name="captcha" type="text" id="captcha" size="8"/>
                      <input name='AMP_SYSTEM_UNIQUE_VISITOR_ID' type='hidden' value='<?php 
        print AMP_SYSTEM_UNIQUE_VISITOR_ID;
        ?>
'/>
                    </p>
                    </div></td>
                </tr>
                  <tr> 
                    <td>  <B>Already Taken Action? <br>
                      Just Enter Your Email and Send:</B> </td>
                  </tr>
                  <tr> 
                    <td> <table>
                        <tr> 
                          <td>Email:&nbsp; <input type="text" maxlength="99" name="old_EmailAddress" size="20"  style="width:140px"></td>
                          <td><input type="submit" class="submit" name="Submit2" value="Send"></td>
                        </tr>
                        <tr> 
                          <td> 
                            <?php 
        if ($act->Fields("email")) {
            ?>
                            <INPUT  type="checkbox"	NAME="'Send_Email'" checked> 
                            <span class="form">Send an Email</span> 
                            <?php 
        }
        ?>
                            <?php 
        if ($act->Fields("fax")) {
            ?>
                            <INPUT  type="checkbox"	NAME="Send_Fax" checked > 
                            <span class="form">Send a Fax</span> 
                            <?php 
        }
        ?>
                            &nbsp;&nbsp;&nbsp; </td>
                        </tr>
                      </table> </td>
                  </tr>
                </TABLE></td>
            </tr>
            <tr> 
              <td colspan="2" valign="top" class="form"><div align="left"><br>
                <!--  First Time Taking Action? <br>
                  Please fill out the fields below<br> -->
                 <b>All fields below are required</b><br>
                </div></td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">E-Mail:&nbsp;</div></td>
              <td> <input name="Email" type="text"  size="35" value="<?php 
        echo $_POST["Email"];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">Title:&nbsp;</div></td>
              <td> <select name="Title" size="1" >
  			  	<?php 
        if ($_POST['Title']) {
            echo "<option>" . $_POST['Title'] . "</option>";
        }
        ?>
                  <option value=""SELECTED>Select Title 
                  <option value="Mr." >Mr. 
                  <option value="Ms." >Ms. 
                  <option value="Mrs." >Mrs. 
                  <option value="Miss" >Miss 
                  <option value="Dr." >Dr. 
                  <option value="Rabbi" >Rabbi 
                  <option value="Fr." >Fr. 
                  <option value="Rev." >Rev. 
                  <option value="Hon." >Hon. 
                  <option value="Br." >Br. 
                  <option value="Sr." >Sr. 
                  <option value="Msr." >Msr. </select> </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right"><nobr>First Name:&nbsp;</nobr></div></td>
              <td> <input name="First_Name" type="text"  size="35" value="<?php 
        echo $_POST['First_Name'];
        ?>
" style="width:160px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right"><nobr>Last Name:&nbsp;</nobr></div></td>
              <td> <input name="Last_Name" type="text"  size="35" value="<?php 
        echo $_POST['Last_Name'];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">Address:&nbsp;</div></td>
              <td> <input name="Street" type="text"  size="35" value="<?php 
        echo $_POST['Street'];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right"></div></td>
              <td> <input name="Street_2" type="text"  size="35" value="<?php 
        echo $_POST['Street_2'];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">City:&nbsp;</div></td>
              <td> <input name="City" type="text"  size="35" value="<?php 
        echo $_POST['City'];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">State:&nbsp;</div></td>
              <td><nobr> <select TABINDEX=7 name="State" size="1">
			  	<?php 
        if ($_POST['State']) {
            echo "<option>" . $_POST['State'] . "</option>";
        }
        ?>
                  <OPTION VALUE="">Select One...</option>
                  <OPTION VALUE="AL" >Alabama</OPTION>
                  <OPTION VALUE="AK" >Alaska</OPTION>
                  <OPTION VALUE="AZ" >Arizona</OPTION>
                  <OPTION VALUE="AR" >Arkansas</OPTION>
                  <OPTION VALUE="CA" >California</OPTION>
                  <OPTION VALUE="CO" >Colorado</OPTION>
                  <OPTION VALUE="CT" >Connecticut</OPTION>
                  <OPTION VALUE="DE" >Delaware</OPTION>
                  <OPTION VALUE="DC" >D.C.</OPTION>
                  <OPTION VALUE="FL" >Florida</OPTION>
                  <OPTION VALUE="GA" >Georgia</OPTION>
                  <OPTION VALUE="HI" >Hawaii</OPTION>
                  <OPTION VALUE="ID" >Idaho</OPTION>
                  <OPTION VALUE="IL" >Illinois</OPTION>
                  <OPTION VALUE="IN" >Indiana</OPTION>
                  <OPTION VALUE="IA" >Iowa</OPTION>
                  <OPTION VALUE="KS" >Kansas</OPTION>
                  <OPTION VALUE="KY" >Kentucky</OPTION>
                  <OPTION VALUE="LA" >Louisiana</OPTION>
                  <OPTION VALUE="ME" >Maine</OPTION>
                  <OPTION VALUE="MD" >Maryland</OPTION>
                  <OPTION VALUE="MA" >Massachusetts</OPTION>
                  <OPTION VALUE="MI" >Michigan</OPTION>
                  <OPTION VALUE="MN" >Minnesota</OPTION>
                  <OPTION VALUE="MS" >Mississippi</OPTION>
                  <OPTION VALUE="MO" >Missouri</OPTION>
                  <OPTION VALUE="MT" >Montana</OPTION>
                  <OPTION VALUE="NE" >Nebraska</OPTION>
                  <OPTION VALUE="NV" >Nevada</OPTION>
                  <OPTION VALUE="NH" >New Hampshire</OPTION>
                  <OPTION VALUE="NJ" >New Jersey</OPTION>
                  <OPTION VALUE="NM" >New Mexico</OPTION>
                  <OPTION VALUE="NY" >New York</OPTION>
                  <OPTION VALUE="NC" >North Carolina</OPTION>
                  <OPTION VALUE="ND" >North Dakota</OPTION>
                  <OPTION VALUE="OH" >Ohio</OPTION>
                  <OPTION VALUE="OK" >Oklahoma</OPTION>
                  <OPTION VALUE="OR" >Oregon</OPTION>
                  <OPTION VALUE="PA" >Pennsylvania</OPTION>
                  <OPTION VALUE="RI" >Rhode Island</OPTION>
                  <OPTION VALUE="SC" >South Carolina</OPTION>
                  <OPTION VALUE="SD" >South Dakota</OPTION>
                  <OPTION VALUE="TN" >Tennessee</OPTION>
                  <OPTION VALUE="TX" >Texas</OPTION>
                  <OPTION VALUE="UT" >Utah</OPTION>
                  <OPTION VALUE="VT" >Vermont</OPTION>
                  <OPTION VALUE="VA" >Virginia</OPTION>
                  <OPTION VALUE="WA" >Washington</OPTION>
                  <OPTION VALUE="WV" >West Virginia</OPTION>
                  <OPTION VALUE="WI" >Wisconsin</OPTION>
                  <OPTION VALUE="WY" >Wyoming</OPTION>
                  <OPTION VALUE="">Other</OPTION>
                </SELECT> &nbsp; <input name="State2" type="text" size="10" value="<?php 
        echo $_POST['State2'];
        ?>
" style="width:30px"></nobr>
                </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">Zip:&nbsp;</div></td>
              <td> <input name="Zip" type="text" size="35" value="<?php 
        echo $_POST['Zip'];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">Country:&nbsp;</div></td>
              <td> <input name="Country" type="text" id="Country" value="<?php 
        echo $_POST['Country'];
        ?>
"  size="35" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top"><div align="right">Phone:&nbsp;</div></td>
              <td> <input name="Phone" type="text" id="Phone" size="35" value="<?php 
        echo $_POST['Phone'];
        ?>
" style="width:165px"> 
              </td>
            </tr>
            <tr> 
              <td valign="top">&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr> 
              <?php 
        if ($act->Fields("uselist")) {
            ?>
              <td colspan="2" valign="top" class="form"><input type="checkbox" name="list1" checked value="<?php 
            echo $act->Fields("list1");
            ?>
"> 
                <input type="hidden" name="list2" value="<?php 
            echo $act->Fields("list2");
            ?>
"> 
                <input type="hidden" name="list3" value="<?php 
            echo $act->Fields("list3");
            ?>
"> 
                <input type="hidden" name="list4" value="<?php 
            echo $act->Fields("list4");
            ?>
">
                Keep me informed about this and other related campaigns</td>
            </tr>
            <?php 
        }
        ?>
          </table>
        </center></td>
    </tr>
    <tr> 
      <td colspan="3" valign="top"><center>
          <input type="submit" class="submit" name="Submit" value="Send My Message!" onClick="return checkform();">
        </center></td>
    </tr>
  </table>
  <p>&nbsp; </p>

</form>
<?php 
    }
}
示例#21
0
 function _renderRevisionNotes($article)
 {
     if ($article->getStatus() != AMP_CONTENT_STATUS_REVISION) {
         return false;
     }
     $notes = $article->getData('notes');
     preg_match('/^.*?-{30}/s', $notes, $rev_matches);
     if (empty($rev_matches)) {
         return false;
     }
     $revision_notes = $rev_matches[0];
     return $this->_renderer->div(converttext($revision_notes), array('class' => 'revision_notes', 'onclick' => "change_any( 'article_fancy', 'article_tab');Tabs_highlight_mirror( \$( 'tab_2_mirror'));AMP_show_panel( 'editor_notes');"));
 }
示例#22
0
 function _HTML_systemFooterText()
 {
     return converttext($this->_systemFooterText());
 }
示例#23
0
,&nbsp;<?php 
        echo $region_description;
        ?>
: <?php 
        echo $revent->Fields("event");
        ?>
</a><br>
 </b>
  <span class="eventsubtitle"><?php 
        echo $revent->Fields("time");
        ?>
</span> 
  <span class="text"> 
  <?php 
        if ($revent->Fields("shortdesc") != NULL) {
            ?>
  <br>
  <?php 
            echo converttext($revent->Fields("shortdesc"));
        }
        ?>
</span><br>
<?php 
        $revent->MoveNext();
    }
}
//end not called
#################################################################################################
$event->Close();
$revent->Close();
require_once "AMP/BaseFooter.php";
示例#24
0
" hspace="4" vspace="4" border="1" class="img_main"></td></tr><Tr align="center"><td width="<?php 
    echo $pwidth;
    ?>
" class="photocaption"><?php 
    echo $Recordset1->Fields("piccap");
    ?>
</td></TR></table>
<p class="text"> 

<?php 
    //end of picture
}
### BODY TEXT ###
if ($Recordset1->Fields("html") == 0) {
    // non html text
    echo converttext($Recordset1->Fields("test"));
}
if ($Recordset1->Fields("html") == 1) {
    // html text
    echo $Recordset1->Fields("test");
}
### ACTION ITEM  ###
if ($Recordset1->Fields("actionitem") == 1) {
    // action item
    include "sendfax.inc.php";
}
if ($Recordset1->Fields("doc") != NULL) {
    include "docbox.inc.php";
}
$Recordset1->Close();
?>
示例#25
0
         echo "</a>";
     }
     print '</p>';
 }
 // end of title
 if ($maintext->Fields("subtitile") != NULL) {
     // start of subtitle
     print '<span class="subtitle">';
     print $maintext->Fields("subtitile");
     print '</span>';
 }
 //end if for subtitle
 print '<span class="homebody"> <p class="homebody">';
 if ($maintext->Fields("html") == 0) {
     // start non html text
     echo converttext($maintext->Fields("test"));
 }
 //end of non html text
 if ($maintext->Fields("html") == 1) {
     //start of html text
     echo $maintext->Fields("test");
 }
 //end of html text
 print '</p></span>';
 if ($maintext->Fields("usemore") == '1') {
     // start of more link
     print ' <span class="morelink">';
     print '<a href="' . $maintext->Fields("morelink") . '" class="morelink">Read More&nbsp;&#187;</a>&nbsp;&nbsp; </span><br>';
 }
 print '<br></td></tr>';
 $maintext->MoveNext();
示例#26
0
  <?php 
        echo $list->Fields("type");
        ?>
</a> 
<span class="text"> 
 <?php 
        if ($list->Fields("description") != NULL) {
            echo "&nbsp;-&nbsp;";
            $aspace = " ";
            $ttext = $list->Fields("description");
            if (strlen($ttext) > $maxTextLenght) {
                $ttext = substr(trim($ttext), 0, $maxTextLenght);
                $ttext = substr($ttext, 0, strlen($ttext) - strpos(strrev($ttext), $aspace));
                $ttext = $ttext . '...';
            }
            echo converttext($ttext);
        }
        ?>
&nbsp;<?php 
        if ($list->Fields("date2") != "0000-00-00") {
            ?>
(<?php 
            echo DoDate($list->Fields("date2"), 'F, Y');
            ?>
)<?php 
        }
        ?>
 </td>
  </tr>
</table>
示例#27
0
 function _HTML_listItemDescription(&$image)
 {
     $caption = $this->_HTML_in_P(converttext($image->getCaption()), array('class' => $this->_css_class_photocaption));
     $photo_desc_parts = array();
     $source = $this->_HTML_listItemSource($image->getSource());
     if ($source) {
         $photo_desc_parts[] = $source;
     }
     $imagedate = $this->_HTML_listItemDate($image->getItemDate());
     if ($imagedate) {
         $photo_desc_parts[] = $imagedate;
     }
     $photo_desc_parts[] = $this->_HTML_fullImageLink($image->getImageRef());
     $photosource = $this->_HTML_in_P(join($this->_HTML_newline(), $photo_desc_parts), array('class' => $this->_css_class_photocredit));
     return $this->_HTML_newline() . $caption . $photosource . $this->_HTML_newline();
 }
示例#28
0
 function intro_text()
 {
     $out .= '<p class="title">' . $this->getData("title") . '</p>';
     if ($this->getData("addressedto") != NULL) {
         $out .= '<p><B><span class="bodystrong">To:</span> <span class="text">' . $this->getData("addressedto") . '</span></B></p>';
     }
     $out .= '<p class="text">' . converttext($this->getData("text")) . '</p>';
     if ($this->getData("intsigner") != NULL) {
         $out .= '<p><B><span class="bodystrong">Initiated By:</span>' . $this->getData("intsigner") . ', ' . $this->getData("org") . '<a href="http://' . $this->getData("url") . '">' . $this->getData("url") . '</a><br>';
         $out .= '<a href="mailto:' . $this->getData("intsignerem") . '">' . $this->getData("intsignerem") . '</a></span></B></p>';
     }
     //$out .='<br>' ;
     return $out;
 }
示例#29
0
 function groups_detail_display($data, $options = array())
 {
     $id = $data['id'];
     $Organization = $data['Company'];
     $City = $data['City'];
     $State = $data['State'];
     $Country = $data['Country'];
     $First_Name = $data['First_Name'];
     $Last_Name = $data['Last_Name'];
     $Email = $data['Email'];
     $Phone = $data['Phone'];
     $Web_Page = $data['Web_Page'];
     $About = $data['custom1'];
     $Details = $data['custom18'];
     $image = $data['custom19'];
     $html = "";
     $html .= '<p class ="title">' . $Organization . '</p>';
     if ($Web_Page && $Web_Page != 'http://') {
         $html .= '<a href="' . $Web_Page . '" target="_blank" class ="bodygrey" >' . $Web_Page . '</a><br>';
     }
     if ($City && $State) {
         $html .= "<span class=\"eventsubtitle\">{$City}, ";
         if ($State == 'Intl') {
             $html .= $Country;
         } else {
             $html .= list_state_convert($State);
         }
         $html .= "</span><br>\n";
     }
     if ($First_Name & $Last_Name) {
         $html .= "<span class=\"bodygrey\">" . $First_Name . "&nbsp;" . $Last_Name . "</span><br>\n";
     }
     if ($Email) {
         $html .= "<span class=\"bodygrey\">" . AMP_protect_email($Email) . " </span><br />\n";
     }
     if ($Phone) {
         $html .= "<span class=\"bodygrey\">" . $Phone . "</span><br><br><br>\n";
     }
     if ($image) {
         $html .= "<img src =\"img/pic/{$image}\" align = left>\n";
     }
     if ($About) {
         $html .= "<span class=\"bodygrey\">" . converttext($About) . "</span><br><br>\n";
     }
     if ($Details) {
         $html .= "<span class=\"text\">" . converttext($Details) . "</span><br>\n";
     }
     $html .= "<br>\n";
     return $html;
 }
示例#30
0
function calendar_output_detail_rsvp_mapped($dbcon, $id)
{
    $q = "select calendar.* from calendar where calendar.id = {$id}";
    $event = $dbcon->CacheGetAll($q);
    foreach ($event as $e) {
        if (isset($e['dia_key']) && $e['dia_key']) {
            $meat .= '<a href="' . DIA_API::getEventIndex() . '?event_KEY=' . $e['dia_key'] . '">RSVP</a>&nbsp; ';
        } elseif ($e['registration_modin'] > 0) {
            $meat .= "<br><a href=\"modinput4.php?modin=" . $e['registration_modin'] . "&calid={$id}\">RSVP</a>";
        }
        $meat .= "<p><span class=title>" . $e['event'] . '</span>';
        if ($e['recurring_options'] == 1) {
            $meat .= "<br/><i>Multi-Day Event</i>";
        }
        if ($e['recurring_options'] == 2) {
            $meat .= "<br/><i>Weekly Event </i>";
        }
        if ($e['recurring_options'] == 3) {
            $meat .= "<br/><i>Monthly Event </i>";
        }
        if ($e['recurring_options'] == 4) {
            $meat .= "<br/><i>Annual Event</i>";
        }
        if ($e['recurring_options'] > 0 && $e['recurring_description'] != NULL) {
            $meat .= ", " . $e['recurring_description'];
        }
        if ($e['date'] != '0000-00-00' || $e['time'] != '') {
            $meat .= '<br>
				<span class="eventsubtitle">' . DoDate($e['date'], 'l, F jS Y') . ' ';
            if ($e['time'] != '00:00 ') {
                $meat .= $e['time'];
            }
        }
        $meat .= '<br>' . $e['lcity'] . ',&nbsp;' . $e['lstate'] . '  ' . $e['lcountry'] . '</span><br><br>
				<span class="text">';
        if ($e['shortdesc'] != '' && $e['fulldesc'] == '') {
            $meat .= converttext(trim($e['shortdesc'])) . '<br>';
        }
        $meat .= converttext(trim($e['fulldesc'])) . '<br>';
        if ($e['location'] != $null) {
            $meat .= '<br><br>
				<b>Location:&nbsp;</b><br>' . $e['location'] . '&nbsp;' . $e['laddress'] . '&nbsp;' . $e['lcity'] . '&nbsp;' . $e['lstate'] . '&nbsp;' . $e['lzip'] . '&nbsp;';
        }
        if ($e['contact1'] != '' or $e['phone1'] != '' or $e['email1'] != '') {
            $meat .= '<br><br><b>Contact:</b>';
        }
        if ($e['contact1'] != '') {
            $meat .= '<br>' . $e['contact1'];
        }
        if ($e['email1'] != '') {
            $meat .= '<br><a href="mailto:' . $e['email1'] . '">' . $e['email1'] . '</a>';
        }
        if ($e['phone1'] != '') {
            $meat .= '<br>' . $e['phone1'];
        }
        if ($e['org'] != '') {
            $meat .= '<br><br><b>Sponsored By:</b><br>' . $e['org'];
        }
        if ($e['url'] != '' and $e['url'] != 'http://') {
            $meat .= ' <a href="' . $e['url'] . '">' . $e['url'] . '</a>';
        }
        $meat .= '</span></p>';
        //
        //insert map
        //var_dump($event);
        /* broken and not always valid: buh-bye
        		if ($e['lat']&&$e['lon']) {
        			$map_lat=$e['lat'];$map_long=$e['lon']; 
        			$mapcode = "mapgen?lon=" .  $map_long . "&lat=" .  $map_lat . "&wid=0.035&ht=0.035&iht=320&iwd=320&mark=" .  $map_long . "," .  $map_lat . ",redpin";
        			$meat .= str_replace('$map_long',$map_long,str_replace('$map_lat',$map_lat,file_get_contents('http://'.$_SERVER['SERVER_NAME'].'/scripts/geocode.js')));
        			$meat .= str_replace('$mapcode',$mapcode,file_get_contents('includes/geocode.inc.php'));
        		}
                
        		$meat .= '<p class="eventsubtitle">Event followups and comments:</p>';
        		// read in results for this calendar id here
        		if (!$resultspresent) {$meat .= '<p class="text">No results entered yet for this event.</p>';};
        
        		$meat .= '<p class="eventsubtitle">Event photos:</p>';
        		// read in photos for this calendar id here
        		if (!$photospresent) {$meat .= '<p class="text">No photos entered yet for this event.</p>';};
                    */
    }
    return $meat;
}