- Timestamp:
- 03/04/07 02:59:37 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/import/present-clean-pre-flight-input.inc.php
r1336 r1375 15 15 16 16 %> 17 <div id="newLinks" class="box">17 <div> 18 18 <div class="subhead"> 19 19 new tags to be created: 20 20 </div> 21 <div >22 < %21 <div style="border: 1px solid #cdcdcd; padding: 2.0em; margin: 0.2em; font-size: 16px;"> 22 <?php 23 23 for( $i = 0; $i < $ts; $i++ ) { 24 24 $line = rtrim( $tags[$i] ); … … 27 27 if( substr( $line, 0, 2 ) == "X " ) { 28 28 $tag = preg_replace( "/^X /", "", $line ); 29 echo row_wrap( " <span class='subtle'>Ignoring duplicate tag $tag</span>", ($i % 2 == 0) ? 1 : 0 ) . "\n";29 echo "<span class='subtle'>Ignoring duplicate tag $tag</span>" . ",\n"; 30 30 } else { 31 31 ++$num_tags; 32 echo row_wrap( " <span class='hot'>Create tag: $line</span>", ($i % 2 == 0) ? 1 : 0 ) . "\n";32 echo "<span class='hot'>$line</span>, \n"; 33 33 } 34 echo "</div>\n";35 34 } 36 %>35 ?> 37 36 </div> 38 37 </div> … … 40 39 <div id="newLinks" class="box"> 41 40 <div class="subhead"> 42 new favorites to be imported:41 new links to be imported: 43 42 </div> 44 < %43 <?php 45 44 for( $i = 0; $i < $ls; $i++ ) { 46 45 $line = rtrim( $links[$i] ); 47 46 $l = preg_split( "/$delimeter/", $line ); 47 $delimeter = "___DELIMETER___"; # FIXME: this is supposed to be pased in as one ofthe args in the XML but its not 48 48 $url = $l[0]; 49 49 $name = $l[1]; 50 50 $max_length = 65; 51 if( $debug ) 52 print_r ( $l ); 51 53 if( ! $line ) 52 54 continue; … … 57 59 ++$num_links; 58 60 $url = getCompactString( $url, $max_length ); 59 echo row_wrap( " <span class='hot'><a target='external' href='$url'>$url</a></span>", ($i % 2 == 0) ? 1 : 0 ); 61 $pieces = get_imported_link_and_comment( $name ); 62 $name = $pieces[0]; 63 $comment = $pieces[1]; 64 echo row_wrap( " <span class='hot'><a target='external' href='$url'>$name</a></span><br>$comment", ($i % 2 == 0) ? 1 : 0 ); 60 65 } 61 66 echo "</div>\n"; 62 67 } 63 %>68 ?> 64 69 </div> 65 70 </div>